import type { GeneratedEtsLibFile } from "../../types/generated";

export const FILE: GeneratedEtsLibFile = {
  path: 'ets/api/@ohos.UiTest.d.ts',
  content: "/*\n * Copyright (C) 2022 Huawei Device Co., Ltd.\n * Licensed under the Apache License,Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,software\n * distributed under the License is distributed on an \"ASIS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n/**\n * @file\n * @kit TestKit\n */\nimport { Callback } from './@ohos.base';\n/**\n * Enumerates the string value match pattern.\n *\n * @enum {number}\n * @syscap SystemCapability.Test.UiTest\n * @since 8\n */\n/**\n * Enumerates the string value match pattern.\n *\n * @enum {number}\n * @syscap SystemCapability.Test.UiTest\n * @crossplatform\n * @since 10\n */\n/**\n * Enumerates the string value match pattern.\n *\n * @enum {number}\n * @syscap SystemCapability.Test.UiTest\n * @crossplatform\n * @atomicservice\n * @since 11\n */\ndeclare enum MatchPattern {\n    /**\n     * Equals to a string.\n     *\n     * @syscap SystemCapability.Test.UiTest\n     * @since 8\n     * @test\n     */\n    /**\n     * Equals to a string.\n     *\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @since 10\n     * @test\n     */\n    /**\n     * Equals to a string.\n     *\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    EQUALS = 0,\n    /**\n     * Contains a substring.\n     *\n     * @syscap SystemCapability.Test.UiTest\n     * @since 8\n     * @test\n     */\n    /**\n     * Contains a substring.\n     *\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @since 10\n     * @test\n     */\n    /**\n     * Contains a substring.\n     *\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    CONTAINS = 1,\n    /**\n     * StartsWith a substring.\n     *\n     * @syscap SystemCapability.Test.UiTest\n     * @since 8\n     * @test\n     */\n    /**\n     * StartsWith a substring.\n     *\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @since 10\n     * @test\n     */\n    /**\n     * StartsWith a substring.\n     *\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    STARTS_WITH = 2,\n    /**\n     * EndsWith a substring.\n     *\n     * @syscap SystemCapability.Test.UiTest\n     * @since 8\n     * @test\n     */\n    /**\n     * EndsWith a substring.\n     *\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @since 10\n     * @test\n     */\n    /**\n     * EndsWith a substring.\n     *\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    ENDS_WITH = 3,\n    /**\n     * Matches the given value using a regular expression, which is case sensitive.\n     *\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 18\n     */\n    REG_EXP = 4,\n    /**\n     * Matches the given value using a regular expression, which is case insensitive.\n     *\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 18\n     */\n    REG_EXP_ICASE = 5\n}\n/**\n * Describes the attribute requirements for the target UiComponents.\n *\n * @syscap SystemCapability.Test.UiTest\n * @since 8\n * @deprecated since 9\n * @useinstead ohos.UiTest.On\n */\ndeclare class By {\n    /**\n     * Specifies the text for the target UiComponent.\n     *\n     * @param { string } txt The text value.\n     * @param { MatchPattern } pattern The {@link MatchPattern} of the text value,default to {@link MatchPattern.EQUALS}\n     * @returns { By } this {@link By} object.\n     * @syscap SystemCapability.Test.UiTest\n     * @since 8\n     * @deprecated since 9\n     * @useinstead ohos.UiTest.On#text\n     * @test\n     */\n    text(txt: string, pattern?: MatchPattern): By;\n    /**\n     * Specifies the inspector key of the target UiComponent.\n     *\n     * @param { string } key The inspectorKey value.\n     * @returns { By } this {@link By} object.\n     * @syscap SystemCapability.Test.UiTest\n     * @since 8\n     * @deprecated since 9\n     * @useinstead ohos.UiTest.On#id\n     * @test\n     */\n    key(key: string): By;\n    /**\n     * Specifies the id of the target UiComponent.\n     *\n     * @param { number } id The id value.\n     * @returns { By } this {@link By} object.\n     * @syscap SystemCapability.Test.UiTest\n     * @since 8\n     * @deprecated since 9\n     * @test\n     */\n    id(id: number): By;\n    /**\n     * Specifies the type of the target UiComponent.\n     *\n     * @param { string } tp The type value.\n     * @returns { By } this {@link By} object.\n     * @syscap SystemCapability.Test.UiTest\n     * @since 8\n     * @deprecated since 9\n     * @useinstead ohos.UiTest.On#type\n     * @test\n     */\n    type(tp: string): By;\n    /**\n     * Specifies the clickable status of the target UiComponent.\n     *\n     * @param { boolean } b The clickable status,default to true.\n     * @returns { By } this {@link By} object.\n     * @syscap SystemCapability.Test.UiTest\n     * @since 8\n     * @deprecated since 9\n     * @useinstead ohos.UiTest.On#clickable\n     * @test\n     */\n    clickable(b?: boolean): By;\n    /**\n     * Specifies the scrollable status of the target UiComponent.\n     *\n     * @param { boolean } b The scrollable status,default to true.\n     * @returns { By } this {@link By} object.\n     * @syscap SystemCapability.Test.UiTest\n     * @since 8\n     * @deprecated since 9\n     * @useinstead ohos.UiTest.On#scrollable\n     * @test\n     */\n    scrollable(b?: boolean): By;\n    /**\n     * Specifies the enabled status of the target UiComponent.\n     *\n     * @param { boolean } b The enabled status,default to true.\n     * @returns { By } this {@link By} object.\n     * @syscap SystemCapability.Test.UiTest\n     * @since 8\n     * @deprecated since 9\n     * @useinstead ohos.UiTest.On#enabled\n     * @test\n     */\n    enabled(b?: boolean): By;\n    /**\n     * Specifies the focused status of the target UiComponent.\n     *\n     * @param { boolean } b The focused status,default to true.\n     * @returns { By } this {@link By} object.\n     * @syscap SystemCapability.Test.UiTest\n     * @since 8\n     * @deprecated since 9\n     * @useinstead ohos.UiTest.On#focused\n     * @test\n     */\n    focused(b?: boolean): By;\n    /**\n     * Specifies the selected status of the target UiComponent.\n     *\n     * @param { boolean } b The selected status,default to true.\n     * @returns { By } this {@link By} object.\n     * @syscap SystemCapability.Test.UiTest\n     * @since 8\n     * @deprecated since 9\n     * @useinstead ohos.UiTest.On#selected\n     * @test\n     */\n    selected(b?: boolean): By;\n    /**\n     * Requires the target UiComponent which is before another UiComponent that specified by the given {@link By}\n     * object,used to locate UiComponent relatively.\n     *\n     * @param { By } by Describes the attribute requirements of UiComponent which the target one is in front of.\n     * @returns { By } this {@link By} object.\n     * @syscap SystemCapability.Test.UiTest\n     * @since 8\n     * @deprecated since 9\n     * @useinstead ohos.UiTest.On#isBefore\n     * @test\n     */\n    isBefore(by: By): By;\n    /**\n     * Requires the target UiComponent which is after another UiComponent that specified by the given {@link By}\n     * object,used to locate UiComponent relatively.\n     *\n     * @param { By } by Describes the attribute requirements of UiComponent which the target one is in back of.\n     * @returns { By } this {@link By} object.\n     * @syscap SystemCapability.Test.UiTest\n     * @since 8\n     * @deprecated since 9\n     * @useinstead ohos.UiTest.On#isAfter\n     * @test\n     */\n    isAfter(by: By): By;\n}\n/**\n * Represents a UiComponent of the ohos application,user can perform operations or query attributes on it.\n *\n * @syscap SystemCapability.Test.UiTest\n * @since 8\n * @deprecated since 9\n * @useinstead ohos.uitest.Component\n * @test\n */\ndeclare class UiComponent {\n    /**\n     * Click this {@link UiComponent}.\n     *\n     * @returns { Promise<void> }\n     * @syscap SystemCapability.Test.UiTest\n     * @since 8\n     * @deprecated since 9\n     * @useinstead ohos.UiTest.Component#click\n     * @test\n     */\n    click(): Promise<void>;\n    /**\n     * Double click this {@link UiComponent}.\n     *\n     * @returns { Promise<void> }\n     * @syscap SystemCapability.Test.UiTest\n     * @since 8\n     * @deprecated since 9\n     * @useinstead ohos.UiTest.Component#doubleClick\n     * @test\n     */\n    doubleClick(): Promise<void>;\n    /**\n     * Long click this {@link UiComponent}.\n     *\n     * @returns { Promise<void> }\n     * @syscap SystemCapability.Test.UiTest\n     * @since 8\n     * @deprecated since 9\n     * @useinstead ohos.UiTest.Component#longClick\n     * @test\n     */\n    longClick(): Promise<void>;\n    /**\n     * Get the id attribute value.\n     *\n     * @returns { Promise<number> } the id value.\n     * @syscap SystemCapability.Test.UiTest\n     * @since 8\n     * @deprecated since 9\n     * @test\n     */\n    getId(): Promise<number>;\n    /**\n     * Get the inspectorKey attribute value.\n     *\n     * @returns { Promise<string> } the inspectorKey value.\n     * @syscap SystemCapability.Test.UiTest\n     * @since 8\n     * @deprecated since 9\n     * @useinstead ohos.UiTest.Component#getId\n     * @test\n     */\n    getKey(): Promise<string>;\n    /**\n     * Get the text attribute value.\n     *\n     * @returns { Promise<string> } the text value.\n     * @syscap SystemCapability.Test.UiTest\n     * @since 8\n     * @deprecated since 9\n     * @useinstead ohos.UiTest.Component#getText\n     * @test\n     */\n    getText(): Promise<string>;\n    /**\n     * Get the type name.\n     *\n     * @returns { Promise<string> } the type name.\n     * @syscap SystemCapability.Test.UiTest\n     * @since 8\n     * @deprecated since 9\n     * @useinstead ohos.UiTest.Component#getType\n     * @test\n     */\n    getType(): Promise<string>;\n    /**\n     * Get the clickable status of this {@link UiComponent}.\n     *\n     * @returns { Promise<boolean> } the clickable status.\n     * @syscap SystemCapability.Test.UiTest\n     * @since 8\n     * @deprecated since 9\n     * @useinstead ohos.UiTest.Component#isClickable\n     * @test\n     */\n    isClickable(): Promise<boolean>;\n    /**\n     * Get the scrollable status of this {@link UiComponent}.\n     *\n     * @returns { Promise<boolean> } the scrollable status.\n     * @syscap SystemCapability.Test.UiTest\n     * @since 8\n     * @deprecated since 9\n     * @useinstead ohos.UiTest.Component#isScrollable\n     * @test\n     */\n    isScrollable(): Promise<boolean>;\n    /**\n     * Get the enabled status of this {@link UiComponent}.\n     *\n     * @returns { Promise<boolean> } the enabled status.\n     * @syscap SystemCapability.Test.UiTest\n     * @since 8\n     * @deprecated since 9\n     * @useinstead ohos.UiTest.Component#isEnabled\n     * @test\n     */\n    isEnabled(): Promise<boolean>;\n    /**\n     * Get the focused status of this {@link UiComponent}.\n     *\n     * @returns { Promise<boolean> } the focused status.\n     * @syscap SystemCapability.Test.UiTest\n     * @since 8\n     * @deprecated since 9\n     * @useinstead ohos.UiTest.Component#isFocused\n     * @test\n     */\n    isFocused(): Promise<boolean>;\n    /**\n     * Get the selected status of this {@link UiComponent}.\n     *\n     * @returns { Promise<boolean> } the selected status.\n     * @syscap SystemCapability.Test.UiTest\n     * @since 8\n     * @deprecated since 9\n     * @useinstead ohos.UiTest.Component#isSelected\n     * @test\n     */\n    isSelected(): Promise<boolean>;\n    /**\n     * Inject text to this {@link UiComponent},applicable to TextInput.\n     *\n     * @param { string } text The text to inject.\n     * @returns { Promise<void> }\n     * @syscap SystemCapability.Test.UiTest\n     * @since 8\n     * @deprecated since 9\n     * @useinstead ohos.UiTest.Component#inputText\n     * @test\n     */\n    inputText(text: string): Promise<void>;\n    /**\n     * Scroll on this {@link UiComponent}to find matched {@link UiComponent},applicable to scrollable one.\n     *\n     * @param { By } by The attribute requirements of the target {@link UiComponent}.\n     * @returns { Promise<UiComponent> } the found result,or undefined if not found.\n     * @syscap SystemCapability.Test.UiTest\n     * @since 8\n     * @deprecated since 9\n     * @useinstead ohos.UiTest.Component#scrollSearch\n     * @test\n     */\n    scrollSearch(by: By): Promise<UiComponent>;\n}\n/**\n * The unified facade of UiTest framework,can be used to find {@link UiComponent},trigger keyEvents,perform\n * coordinates-based UI actions,capture screen and so on.\n *\n * @syscap SystemCapability.Test.UiTest\n * @since 8\n * @deprecated since 9\n * @useinstead ohos.uitest.Driver\n * @test\n */\ndeclare class UiDriver {\n    /**\n     * Create an {@link UiDriver} object.\n     *\n     * @returns { UiDriver } the {@link UiDriver} object.\n     * @syscap SystemCapability.Test.UiTest\n     * @since 8\n     * @deprecated since 9\n     * @useinstead ohos.UiTest.Driver#create\n     * @test\n     */\n    static create(): UiDriver;\n    /**\n     * Delay with specified duration.\n     *\n     * @param { number } duration The delay duration in milliseconds.\n     * @returns { Promise<void> }\n     * @syscap SystemCapability.Test.UiTest\n     * @since 8\n     * @deprecated since 9\n     * @useinstead ohos.UiTest.Driver#delayMs\n     * @test\n     */\n    delayMs(duration: number): Promise<void>;\n    /**\n     * Find the first matched {@link UiComponent} on current UI.\n     *\n     * @param { By } by The attribute requirements of the target {@link UiComponent}.\n     * @returns { Promise<UiComponent> } the first matched {@link UiComponent} or undefined.\n     * @syscap SystemCapability.Test.UiTest\n     * @since 8\n     * @deprecated since 9\n     * @useinstead ohos.UiTest.Driver#findComponent\n     * @test\n     */\n    findComponent(by: By): Promise<UiComponent>;\n    /**\n     * Find all the matched {@link UiComponent}s on current UI.\n     *\n     * @param { By } by The attribute requirements of the target {@link UiComponent}.\n     * @returns { Promise<Array<UiComponent>> } the matched {@link UiComponent}s list.\n     * @syscap SystemCapability.Test.UiTest\n     * @since 8\n     * @deprecated since 9\n     * @useinstead ohos.UiTest.Driver#findComponents\n     * @test\n     */\n    findComponents(by: By): Promise<Array<UiComponent>>;\n    /**\n     * Assert the matched {@link UiComponent}s exists on current UI;if not,assertError will be raised.\n     *\n     * @param { By } by The attribute requirements of the target {@link UiComponent}.\n     * @returns { Promise<void> }\n     * @throws {BusinessError} 401 - if the input parameters are invalid.\n     * @throws {BusinessError} 17000002 - if the async function was not called with await.\n     * @throws {BusinessError} 17000003 - if the assertion failed.\n     * @syscap SystemCapability.Test.UiTest\n     * @since 8\n     * @deprecated since 9\n     * @useinstead ohos.UiTest.Driver#assertComponentExist\n     * @test\n     */\n    assertComponentExist(by: By): Promise<void>;\n    /**\n     * Press the BACK key.\n     *\n     * @returns { Promise<void> }\n     * @syscap SystemCapability.Test.UiTest\n     * @since 8\n     * @deprecated since 9\n     * @useinstead ohos.UiTest.Driver#pressBack\n     * @test\n     */\n    pressBack(): Promise<void>;\n    /**\n     * Press the specified key.\n     *\n     * @param { number } keyCode the target keyCode.\n     * @returns { Promise<void> }\n     * @syscap SystemCapability.Test.UiTest\n     * @since 8\n     * @deprecated since 9\n     * @useinstead ohos.UiTest.Driver#triggerKey\n     * @test\n     */\n    triggerKey(keyCode: number): Promise<void>;\n    /**\n     * Click on the specified location on the screen.\n     *\n     * @param { number } x The x-coordinate.\n     * @param { number } y The y-coordinate.\n     * @returns { Promise<void> }\n     * @syscap SystemCapability.Test.UiTest\n     * @since 8\n     * @deprecated since 9\n     * @useinstead ohos.UiTest.Driver#click\n     * @test\n     */\n    click(x: number, y: number): Promise<void>;\n    /**\n     * DoubleClick on the specified location on the screen.\n     *\n     * @param { number } x The x-coordinate.\n     * @param { number } y The y-coordinate.\n     * @returns { Promise<void> }\n     * @syscap SystemCapability.Test.UiTest\n     * @since 8\n     * @deprecated since 9\n     * @useinstead ohos.UiTest.Driver#doubleClick\n     * @test\n     */\n    doubleClick(x: number, y: number): Promise<void>;\n    /**\n     * LongClick on the specified location on the screen.\n     *\n     * @param { number } x The x-coordinate.\n     * @param { number } y The y-coordinate.\n     * @returns { Promise<void> }\n     * @syscap SystemCapability.Test.UiTest\n     * @since 8\n     * @deprecated since 9\n     * @useinstead ohos.UiTest.Driver#longClick\n     * @test\n     */\n    longClick(x: number, y: number): Promise<void>;\n    /**\n     * Swipe on the screen between the specified points.\n     *\n     * @param { number } startx The x-coordinate of the starting point.\n     * @param { number } starty The y-coordinate of the starting point.\n     * @param { number } endx The x-coordinate of the ending point.\n     * @param { number } endy The y-coordinate of the ending point.\n     * @returns { Promise<void> }\n     * @syscap SystemCapability.Test.UiTest\n     * @since 8\n     * @deprecated since 9\n     * @useinstead ohos.UiTest.Driver#swipe\n     * @test\n     */\n    swipe(startx: number, starty: number, endx: number, endy: number): Promise<void>;\n    /**\n     * Capture current screen and save as picture which PNG format.\n     *\n     * @param { string } savePath the path where to store the picture.\n     * @returns { Promise<boolean> } true if screen-capturing and file-storing are completed successfully,false otherwise.\n     * @syscap SystemCapability.Test.UiTest\n     * @since 8\n     * @deprecated since 9\n     * @useinstead ohos.uitest.Driver#screenCap\n     * @test\n     */\n    screenCap(savePath: string): Promise<boolean>;\n}\n/**\n * Enumerates the window mode of the tested window.\n *\n * @enum { number }\n * @syscap SystemCapability.Test.UiTest\n * @since 9\n */\n/**\n * Enumerates the window mode of the tested window.\n *\n * @enum { number }\n * @syscap SystemCapability.Test.UiTest\n * @atomicservice\n * @since 11\n */\ndeclare enum WindowMode {\n    /**\n     * The test window is a full screen window.\n     *\n     * @syscap SystemCapability.Test.UiTest\n     * @since 9\n     * @test\n     */\n    /**\n     * The test window is a full screen window.\n     *\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    FULLSCREEN = 0,\n    /**\n     * The test window is the first window in the split screen state.\n     *\n     * @syscap SystemCapability.Test.UiTest\n     * @since 9\n     * @test\n     */\n    /**\n     * The test window is the first window in the split screen state.\n     *\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    PRIMARY = 1,\n    /**\n     * The test window is the second window in the split screen state.\n     *\n     * @syscap SystemCapability.Test.UiTest\n     * @since 9\n     * @test\n     */\n    /**\n     * The test window is the second window in the split screen state.\n     *\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    SECONDARY = 2,\n    /**\n     * The test window is a floating window.\n     *\n     * @syscap SystemCapability.Test.UiTest\n     * @since 9\n     * @test\n     */\n    /**\n     * The test window is a floating window.\n     *\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    FLOATING = 3\n}\n/**\n * Enumerates the resize direction for the window.\n *\n * @enum { number }\n * @syscap SystemCapability.Test.UiTest\n * @since 9\n */\n/**\n * Enumerates the resize direction for the window.\n *\n * @enum { number }\n * @syscap SystemCapability.Test.UiTest\n * @atomicservice\n * @since 11\n */\ndeclare enum ResizeDirection {\n    /**\n     * Left.\n     *\n     * @syscap SystemCapability.Test.UiTest\n     * @since 9\n     * @test\n     */\n    /**\n     * Left.\n     *\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    LEFT = 0,\n    /**\n     * Right.\n     *\n     * @syscap SystemCapability.Test.UiTest\n     * @since 9\n     * @test\n     */\n    /**\n     * Right.\n     *\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    RIGHT = 1,\n    /**\n     * Up.\n     *\n     * @syscap SystemCapability.Test.UiTest\n     * @since 9\n     * @test\n     */\n    /**\n     * Up.\n     *\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    UP = 2,\n    /**\n     * Down.\n     *\n     * @syscap SystemCapability.Test.UiTest\n     * @since 9\n     * @test\n     */\n    /**\n     * Down.\n     *\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    DOWN = 3,\n    /**\n     * Upper left.\n     *\n     * @syscap SystemCapability.Test.UiTest\n     * @since 9\n     * @test\n     */\n    /**\n     * Upper left.\n     *\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    LEFT_UP = 4,\n    /**\n     * Lower left.\n     *\n     * @syscap SystemCapability.Test.UiTest\n     * @since 9\n     * @test\n     */\n    /**\n     * Lower left.\n     *\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    LEFT_DOWN = 5,\n    /**\n     * Upper right.\n     *\n     * @syscap SystemCapability.Test.UiTest\n     * @since 9\n     * @test\n     */\n    /**\n     * Upper right.\n     *\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    RIGHT_UP = 6,\n    /**\n     * Lower right.\n     *\n     * @syscap SystemCapability.Test.UiTest\n     * @since 9\n     * @test\n     */\n    /**\n     * Lower right.\n     *\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    RIGHT_DOWN = 7\n}\n/**\n * Enumerates the rotation of the device display.\n *\n * @enum { number }\n * @syscap SystemCapability.Test.UiTest\n * @since 9\n */\n/**\n * Enumerates the rotation of the device display.\n *\n * @enum { number }\n * @syscap SystemCapability.Test.UiTest\n * @atomicservice\n * @since 11\n */\ndeclare enum DisplayRotation {\n    /**\n     * Device display does not rotate to display vertically.\n     *\n     * @syscap SystemCapability.Test.UiTest\n     * @since 9\n     * @test\n     */\n    /**\n     * Device display does not rotate to display vertically.\n     *\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    ROTATION_0 = 0,\n    /**\n     * Device display rotates 90 degrees clockwise to display horizontally.\n     *\n     * @syscap SystemCapability.Test.UiTest\n     * @since 9\n     * @test\n     */\n    /**\n     * Device display rotates 90 degrees clockwise to display horizontally.\n     *\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    ROTATION_90 = 1,\n    /**\n     * Device display rotates clockwise 180 degrees to display vertically in reverse.\n     *\n     * @syscap SystemCapability.Test.UiTest\n     * @since 9\n     * @test\n     */\n    /**\n     * Device display rotates clockwise 180 degrees to display vertically in reverse.\n     *\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    ROTATION_180 = 2,\n    /**\n     * Device display rotates 270 degrees clockwise to display horizontally in reverse.\n     *\n     * @syscap SystemCapability.Test.UiTest\n     * @since 9\n     * @test\n     */\n    /**\n     * Device display rotates 270 degrees clockwise to display horizontally in reverse.\n     *\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    ROTATION_270 = 3\n}\n/**\n * Represents the point on the device screen.\n *\n * @typedef Point\n * @syscap SystemCapability.Test.UiTest\n * @since 9\n */\n/**\n * Represents the point on the device screen.\n *\n * @typedef Point\n * @syscap SystemCapability.Test.UiTest\n * @crossplatform\n * @since 10\n */\n/**\n * Represents the point on the device screen.\n *\n * @typedef Point\n * @syscap SystemCapability.Test.UiTest\n * @crossplatform\n * @atomicservice\n * @since 11\n */\ndeclare interface Point {\n    /**\n     * The x-coordinate of the coordinate point.\n     *\n     * @type { number }\n     * @readonly\n     * @syscap SystemCapability.Test.UiTest\n     * @since 9\n     */\n    /**\n     * The x-coordinate of the coordinate point.\n     *\n     * @type { number }\n     * @readonly\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * The x-coordinate of the coordinate point.\n     *\n     * @type { number }\n     * @readonly\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * The x-coordinate of the coordinate point.\n     *\n     * @type { number }\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @atomicservice\n     * @since 20\n     */\n    x: number;\n    /**\n     * The y-coordinate of the coordinate point.\n     *\n     * @type { number }\n     * @readonly\n     * @syscap SystemCapability.Test.UiTest\n     * @since 9\n     */\n    /**\n     * The y-coordinate of the coordinate point.\n     *\n     * @type { number }\n     * @readonly\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * The y-coordinate of the coordinate point.\n     *\n     * @type { number }\n     * @readonly\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * The y-coordinate of the coordinate point.\n     *\n     * @type { number }\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @atomicservice\n     * @since 20\n     */\n    y: number;\n    /**\n     * The displayId to which the coordinate point belongs, default is the displayId of the main scrren.\n     *\n     * @type { ?number }\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 20\n     */\n    displayId?: number;\n}\n/**\n * Represents the rectangle area on the device screen.\n *\n * @typedef Rect\n * @syscap SystemCapability.Test.UiTest\n * @since 9\n */\n/**\n * Represents the rectangle area on the device screen.\n *\n * @typedef Rect\n * @syscap SystemCapability.Test.UiTest\n * @atomicservice\n * @since 11\n */\n/**\n * Represents the rectangle area on the device screen.\n *\n * @typedef Rect\n * @syscap SystemCapability.Test.UiTest\n * @crossplatform\n * @atomicservice\n * @since 12\n */\ndeclare interface Rect {\n    /**\n     * The x-coordinate of the top left corner of the rectangle.\n     *\n     * @type { number }\n     * @readonly\n     * @syscap SystemCapability.Test.UiTest\n     * @since 9\n     */\n    /**\n     * The x-coordinate of the top left corner of the rectangle.\n     *\n     * @type { number }\n     * @readonly\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * The x-coordinate of the top left corner of the rectangle.\n     *\n     * @type { number }\n     * @readonly\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    /**\n     * The x-coordinate of the top left corner of the rectangle.\n     *\n     * @type { number }\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @atomicservice\n     * @since 20\n     */\n    left: number;\n    /**\n     * The y-coordinate of the top left corner of the rectangle.\n     *\n     * @type { number }\n     * @readonly\n     * @syscap SystemCapability.Test.UiTest\n     * @since 9\n     */\n    /**\n     * The y-coordinate of the top left corner of the rectangle.\n     *\n     * @type { number }\n     * @readonly\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * The y-coordinate of the top left corner of the rectangle.\n     *\n     * @type { number }\n     * @readonly\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    /**\n     * The y-coordinate of the top left corner of the rectangle.\n     *\n     * @type { number }\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @atomicservice\n     * @since 20\n     */\n    top: number;\n    /**\n     * The x-coordinate at the bottom right corner of the rectangle.\n     *\n     * @type { number }\n     * @readonly\n     * @syscap SystemCapability.Test.UiTest\n     * @since 9\n     */\n    /**\n     * The x-coordinate at the bottom right corner of the rectangle.\n     *\n     * @type { number }\n     * @readonly\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * The x-coordinate at the bottom right corner of the rectangle.\n     *\n     * @type { number }\n     * @readonly\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    /**\n     * The x-coordinate at the bottom right corner of the rectangle.\n     *\n     * @type { number }\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @atomicservice\n     * @since 20\n     */\n    right: number;\n    /**\n     * The y-coordinate at the bottom right corner of the rectangle.\n     *\n     * @type { number }\n     * @readonly\n     * @syscap SystemCapability.Test.UiTest\n     * @since 9\n     */\n    /**\n     * The y-coordinate at the bottom right corner of the rectangle.\n     *\n     * @type { number }\n     * @readonly\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * The y-coordinate at the bottom right corner of the rectangle.\n     *\n     * @type { number }\n     * @readonly\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    /**\n     * The y-coordinate at the bottom right corner of the rectangle.\n     *\n     * @type { number }\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @atomicservice\n     * @since 20\n     */\n    bottom: number;\n    /**\n     * The displayId to which the rect belongs, default is the displayId of the main screen.\n     *\n     * @type { ?number }\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 20\n     */\n    displayId?: number;\n}\n/**\n * Represents filer condition to get the window .\n *\n * @typedef WindowFilter\n * @syscap SystemCapability.Test.UiTest\n * @since 9\n */\n/**\n * Represents filer condition to get the window .\n *\n * @typedef WindowFilter\n * @syscap SystemCapability.Test.UiTest\n * @atomicservice\n * @since 11\n */\ndeclare interface WindowFilter {\n    /**\n     * The package name of the application which the window belongs to.\n     *\n     * @type { ?string }\n     * @syscap SystemCapability.Test.UiTest\n     * @since 9\n     */\n    /**\n     * The package name of the application which the window belongs to.\n     *\n     * @type { ?string }\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 11\n     */\n    bundleName?: string;\n    /**\n     * The title of the window.\n     *\n     * @type { ?string }\n     * @syscap SystemCapability.Test.UiTest\n     * @since 9\n     */\n    /**\n     * The title of the window.\n     *\n     * @type { ?string }\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 11\n     */\n    title?: string;\n    /**\n     * The focal state of the window.\n     *\n     * @type { ?boolean }\n     * @syscap SystemCapability.Test.UiTest\n     * @since 9\n     */\n    /**\n     * The focal state of the window.\n     *\n     * @type { ?boolean }\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 11\n     */\n    focused?: boolean;\n    /**\n     * The active state of the window.\n     *\n     * @type { ?boolean }\n     * @syscap SystemCapability.Test.UiTest\n     * @since 9\n     */\n    /**\n     * The active state of the window.\n     *\n     * @type { ?boolean }\n     * @syscap SystemCapability.Test.UiTest\n     * @since 11\n     * @deprecated since 11\n     * @useinstead ohos.UiTest.WindowFilter#active\n     */\n    actived?: boolean;\n    /**\n     * The active state of the window.\n     *\n     * @type { ?boolean }\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 11\n     */\n    active?: boolean;\n    /**\n     * Find the window in the specified ID display. By default, it searches all displays.\n     *\n     * @type { ?number }\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 20\n     */\n    displayId?: number;\n}\n/**\n * Represents the information of an UI element, can be a component or window.\n *\n * @typedef UIElementInfo\n * @syscap SystemCapability.Test.UiTest\n * @since 10\n * @test\n */\n/**\n * Represents the information of an UI element, can be a component or window.\n *\n * @typedef UIElementInfo\n * @syscap SystemCapability.Test.UiTest\n * @atomicservice\n * @since 11\n * @test\n */\ndeclare interface UIElementInfo {\n    /**\n     * The bundle name of the host application.\n     * @type { string }\n     * @readonly\n     * @syscap SystemCapability.Test.UiTest\n     * @since 10\n     * @test\n     */\n    /**\n     * The bundle name of the host application.\n     * @type { string }\n     * @readonly\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    readonly bundleName: string;\n    /**\n     * The component type, set it as 'window' if it's a window.\n     * @type { string }\n     * @readonly\n     * @syscap SystemCapability.Test.UiTest\n     * @since 10\n     * @test\n     */\n    /**\n     * The component type, set it as 'window' if it's a window.\n     * @type { string }\n     * @readonly\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    readonly type: string;\n    /**\n     * The text of component, set it as window's title if it's a window.\n     * @type { string }\n     * @readonly\n     * @syscap SystemCapability.Test.UiTest\n     * @since 10\n     * @test\n     */\n    /**\n     * The text of component, set it as window's title if it's a window.\n     * @type { string }\n     * @readonly\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    readonly text: string;\n}\n/**\n * Observer to monitor UI events.\n *\n * @typedef UIEventObserver\n * @syscap SystemCapability.Test.UiTest\n * @since 10\n * @test\n */\n/**\n * Observer to monitor UI events.\n *\n * @typedef UIEventObserver\n * @syscap SystemCapability.Test.UiTest\n * @atomicservice\n * @since 11\n * @test\n */\ndeclare interface UIEventObserver {\n    /**\n     * Listen for toast show once\n     *\n     * @param { 'toastShow' } type 'toastShow'.\n     * @param { Callback<UIElementInfo> } callback function, returns the monitored UIElementInfo.\n     * @throws { BusinessError } 401 - if the input parameters are invalid.\n     * @syscap SystemCapability.Test.UiTest\n     * @since 10\n     * @test\n     */\n    /**\n     * Listen for toast show once\n     *\n     * @param { 'toastShow' } type -'toastShow'.\n     * @param { Callback<UIElementInfo> } callback - function, returns the monitored UIElementInfo.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    once(type: 'toastShow', callback: Callback<UIElementInfo>): void;\n    /**\n     * Listen for dialog show once\n     *\n     * @param { 'dialogShow' } type 'dialogShow'.\n     * @param { Callback<UIElementInfo> } callback function, returns the monitored UIElementInfo.\n     * @throws { BusinessError } 401 - if the input parameters are invalid.\n     * @syscap SystemCapability.Test.UiTest\n     * @since 10\n     * @test\n     */\n    /**\n     * Listen for dialog show once\n     *\n     * @param { 'dialogShow' } type - 'dialogShow'.\n     * @param { Callback<UIElementInfo> } callback - function, returns the monitored UIElementInfo.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    once(type: 'dialogShow', callback: Callback<UIElementInfo>): void;\n}\n/**\n * Enumerates the direction for the UI operation .\n *\n * @enum { number }\n * @syscap SystemCapability.Test.UiTest\n * @since 10\n */\n/**\n * Enumerates the direction for the UI operation .\n *\n * @enum { number }\n * @syscap SystemCapability.Test.UiTest\n * @atomicservice\n * @since 11\n */\n/**\n * Enumerates the direction for the UI operation .\n *\n * @enum { number }\n * @syscap SystemCapability.Test.UiTest\n * @crossplatform\n * @atomicservice\n * @since 12\n */\ndeclare enum UiDirection {\n    /**\n     * Left.\n     *\n     * @syscap SystemCapability.Test.UiTest\n     * @since 10\n     * @test\n     */\n    /**\n     * Left.\n     *\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    /**\n     * Left.\n     *\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     * @test\n     */\n    LEFT = 0,\n    /**\n     * Right.\n     *\n     * @syscap SystemCapability.Test.UiTest\n     * @since 10\n     * @test\n     */\n    /**\n     * Right.\n     *\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    /**\n     * Right.\n     *\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     * @test\n     */\n    RIGHT = 1,\n    /**\n     * Up.\n     *\n     * @syscap SystemCapability.Test.UiTest\n     * @since 10\n     * @test\n     */\n    /**\n     * Up.\n     *\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    /**\n     * Up.\n     *\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     * @test\n     */\n    UP = 2,\n    /**\n     * Down.\n     *\n     * @syscap SystemCapability.Test.UiTest\n     * @since 10\n     * @test\n     */\n    /**\n     * Down.\n     *\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    /**\n     * Down.\n     *\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     * @test\n     */\n    DOWN = 3\n}\n/**\n * Enumerates the id of the button on the mouse.\n *\n * @enum { number }\n * @syscap SystemCapability.Test.UiTest\n * @since 10\n */\n/**\n * Enumerates the id of the button on the mouse.\n *\n * @enum { number }\n * @syscap SystemCapability.Test.UiTest\n * @atomicservice\n * @since 11\n */\ndeclare enum MouseButton {\n    /**\n     * Left button of the mouse.\n     *\n     * @syscap SystemCapability.Test.UiTest\n     * @since 10\n     * @test\n     */\n    /**\n     * Left button of the mouse.\n     *\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    MOUSE_BUTTON_LEFT = 0,\n    /**\n     * Right button of the mouse..\n     *\n     * @syscap SystemCapability.Test.UiTest\n     * @since 10\n     * @test\n     */\n    /**\n     * Right button of the mouse..\n     *\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    MOUSE_BUTTON_RIGHT = 1,\n    /**\n     * MIDDLE button of the mouse.\n     *\n     * @syscap SystemCapability.Test.UiTest\n     * @since 10\n     * @test\n     */\n    /**\n     * MIDDLE button of the mouse.\n     *\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    MOUSE_BUTTON_MIDDLE = 2\n}\n/**\n * Additional options touchpad multi-finger swipe gestures.\n * @interface TouchPadSwipeOptions\n * @syscap SystemCapability.Test.UiTest\n * @atomicservice\n * @since 18\n * @test\n */\ndeclare interface TouchPadSwipeOptions {\n    /**\n     * Whether stay for 1 second and lift up after swipe, default is false.\n     * @type { ?boolean }\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 18\n     * @test\n     */\n    stay?: boolean;\n    /**\n     * Speed(pixels per second) of touchpad multi-finger swipe, default is 2000, the value ranges from 200 to 40000,set it 2000 if out of range.\n     * @type { ?number }\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 18\n     * @test\n     */\n    speed?: number;\n}\n/**\n * Text input method options.\n * @interface InputTextMode\n * @syscap SystemCapability.Test.UiTest\n * @atomicservice\n * @since 20\n * @test\n */\ndeclare interface InputTextMode {\n    /**\n     * Whether to use copy and paste mode to input text, default is false.\n     * @type { ?boolean }\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 20\n     * @test\n     */\n    paste?: boolean;\n    /**\n     * Whether input text appending to the end of paragraph without clearing the text, default is false.\n     * @type { ?boolean }\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 20\n     * @test\n     */\n    addition?: boolean;\n}\n/**\n * Describes the attribute requirements for the target Components.\n *\n * @syscap SystemCapability.Test.UiTest\n * @since 9\n */\n/**\n * Describes the attribute requirements for the target Components.\n *\n * @syscap SystemCapability.Test.UiTest\n * @atomicservice\n * @since 11\n */\n/**\n * Describes the attribute requirements for the target Components.\n *\n * @syscap SystemCapability.Test.UiTest\n * @crossplatform\n * @atomicservice\n * @since 12\n */\ndeclare class On {\n    /**\n     * Specifies the text for the target Component.\n     *\n     * @param { string } txt The text value.\n     * @param { MatchPattern } pattern The {@link MatchPattern} of the text value, default to {@link MatchPattern.EQUALS}\n     * @returns { On } this {@link On} object.\n     * @throws { BusinessError } 401 - if the input parameters are invalid.\n     * @syscap SystemCapability.Test.UiTest\n     * @since 9\n     * @test\n     */\n    /**\n     * Specifies the text for the target Component.\n     *\n     * @param { string } txt The text value.\n     * @param { MatchPattern } pattern The {@link MatchPattern} of the text value, default to {@link MatchPattern.EQUALS}\n     * @returns { On } this {@link On} object.\n     * @throws { BusinessError } 401 - if the input parameters are invalid.\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @since 10\n     * @test\n     */\n    /**\n     * Specifies the text for the target Component.\n     *\n     * @param { string } txt - the text value.\n     * @param { MatchPattern } [pattern] - the {@link MatchPattern} of the text value,Set it default {@link MatchPattern.EQUALS} if null or undefined.\n     * @returns { On } this {@link On} object.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    text(txt: string, pattern?: MatchPattern): On;\n    /**\n     * Specifies the id of the target Component.\n     *\n     * @param { string } id The id value.\n     * @returns { On } this {@link On} object.\n     * @throws { BusinessError } 401 - if the input parameters are invalid.\n     * @syscap SystemCapability.Test.UiTest\n     * @since 9\n     * @test\n     */\n    /**\n     * Specifies the id of the target Component.\n     *\n     * @param { string } id The id value.\n     * @returns { On } this {@link On} object.\n     * @throws { BusinessError } 401 - if the input parameters are invalid.\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @since 10\n     * @test\n     */\n    /**\n     * Specifies the id of the target Component.\n     *\n     * @param { string } id - the id value.\n     * @returns { On } this {@link On} object.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    id(id: string): On;\n    /**\n     * Specifies the type of the target Component.\n     *\n     * @param { string } tp The type value.\n     * @returns { On } this {@link On} object.\n     * @throws { BusinessError } 401 - if the input parameters are invalid.\n     * @syscap SystemCapability.Test.UiTest\n     * @since 9\n     * @test\n     */\n    /**\n     * Specifies the type of the target Component.\n     *\n     * @param { string } tp The type value.\n     * @returns { On } this {@link On} object.\n     * @throws { BusinessError } 401 - if the input parameters are invalid.\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @since 10\n     * @test\n     */\n    /**\n     * Specifies the type of the target Component.\n     *\n     * @param { string } tp - The type value.\n     * @returns { On } this {@link On} object.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    type(tp: string): On;\n    /**\n     * Specifies the clickable status of the target Component.\n     *\n     * @param { boolean } b The clickable status,default to true.\n     * @returns { On } this {@link On} object.\n     * @throws { BusinessError } 401 - if the input parameters are invalid.\n     * @syscap SystemCapability.Test.UiTest\n     * @since 9\n     * @test\n     */\n    /**\n     * Specifies the clickable status of the target Component.\n     *\n     * @param { boolean } b The clickable status,default to true.\n     * @returns { On } this {@link On} object.\n     * @throws { BusinessError } 401 - if the input parameters are invalid.\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @since 10\n     * @test\n     */\n    /**\n     * Specifies the clickable status of the target Component.\n     *\n     * @param { boolean } [b] - the clickable status.Set it default true if null or undefined.\n     * @returns { On } this {@link On} object.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Incorrect parameter types; 2. Parameter verification failed.\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    clickable(b?: boolean): On;\n    /**\n     * Specifies the longClickable status of the target Component.\n     *\n     * @param { boolean } b The clickable status,default to true.\n     * @returns { On } this {@link On} object.\n     * @throws { BusinessError } 401 - if the input parameters are invalid.\n     * @syscap SystemCapability.Test.UiTest\n     * @since 9\n     * @test\n     */\n    /**\n     * Specifies the longClickable status of the target Component.\n     *\n     * @param { boolean } b The clickable status,default to true.\n     * @returns { On } this {@link On} object.\n     * @throws { BusinessError } 401 - if the input parameters are invalid.\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @since 10\n     * @test\n     */\n    /**\n     * Specifies the longClickable status of the target Component.\n     *\n     * @param { boolean } [b] - the longClickable status.Set it default true if null or undefined.\n     * @returns { On } this {@link On} object.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Incorrect parameter types; 2. Parameter verification failed.\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    longClickable(b?: boolean): On;\n    /**\n     * Specifies the scrollable status of the target Component.\n     *\n     * @param { boolean } b The scrollable status,default to true.\n     * @returns { On } this {@link On} object.\n     * @throws { BusinessError } 401 - if the input parameters are invalid.\n     * @syscap SystemCapability.Test.UiTest\n     * @since 9\n     * @test\n     */\n    /**\n     * Specifies the scrollable status of the target Component.\n     *\n     * @param { boolean } b The scrollable status,default to true.\n     * @returns { On } this {@link On} object.\n     * @throws { BusinessError } 401 - if the input parameters are invalid.\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @since 10\n     * @test\n     */\n    /**\n     * Specifies the scrollable status of the target Component.\n     *\n     * @param { boolean } [b] - the scrollable status.Set it default true if null or undefined.\n     * @returns { On } this {@link On} object.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Incorrect parameter types; 2. Parameter verification failed.\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    scrollable(b?: boolean): On;\n    /**\n     * Specifies the enabled status of the target Component.\n     *\n     * @param { boolean } b The enabled status,default to true.\n     * @returns { On } this {@link On} object.\n     * @throws { BusinessError } 401 - if the input parameters are invalid.\n     * @syscap SystemCapability.Test.UiTest\n     * @since 9\n     * @test\n     */\n    /**\n     * Specifies the enabled status of the target Component.\n     *\n     * @param { boolean } b The enabled status,default to true.\n     * @returns { On } this {@link On} object.\n     * @throws { BusinessError } 401 - if the input parameters are invalid.\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @since 10\n     * @test\n     */\n    /**\n     * Specifies the enabled status of the target Component.\n     *\n     * @param { boolean } [b] - the enabled status.Set it default true if null or undefined.\n     * @returns { On } this {@link On} object.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Incorrect parameter types; 2. Parameter verification failed.\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    enabled(b?: boolean): On;\n    /**\n     * Specifies the focused status of the target Component.\n     *\n     * @param { boolean } b The focused status,default to true.\n     * @returns { On } this {@link On} object.\n     * @throws { BusinessError } 401 - if the input parameters are invalid.\n     * @syscap SystemCapability.Test.UiTest\n     * @since 9\n     * @test\n     */\n    /**\n     * Specifies the focused status of the target Component.\n     *\n     * @param { boolean } b The focused status,default to true.\n     * @returns { On } this {@link On} object.\n     * @throws { BusinessError } 401 - if the input parameters are invalid.\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @since 10\n     * @test\n     */\n    /**\n     * Specifies the focused status of the target Component.\n     *\n     * @param { boolean } [b] - the focused status.Set it default true if null or undefined.\n     * @returns { On } this {@link On} object.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Incorrect parameter types; 2. Parameter verification failed.\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    focused(b?: boolean): On;\n    /**\n     * Specifies the selected status of the target Component.\n     *\n     * @param { boolean } b The selected status,default to true.\n     * @returns { On } this {@link On} object.\n     * @throws { BusinessError } 401 - if the input parameters are invalid.\n     * @syscap SystemCapability.Test.UiTest\n     * @since 9\n     * @test\n     */\n    /**\n     * Specifies the selected status of the target Component.\n     *\n     * @param { boolean } b The selected status,default to true.\n     * @returns { On } this {@link On} object.\n     * @throws { BusinessError } 401 - if the input parameters are invalid.\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @since 10\n     * @test\n     */\n    /**\n     * Specifies the selected status of the target Component.\n     *\n     * @param { boolean } [b] the - selected status.Set it default true if null or undefined.\n     * @returns { On } this {@link On} object.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Incorrect parameter types; 2. Parameter verification failed.\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    selected(b?: boolean): On;\n    /**\n     * Specifies the checked status of the target Component.\n     *\n     * @param { boolean } b The checked status,default to true.\n     * @returns { On } this {@link On} object.\n     * @throws { BusinessError } 401 - if the input parameters are invalid.\n     * @syscap SystemCapability.Test.UiTest\n     * @since 9\n     * @test\n     */\n    /**\n     * Specifies the checked status of the target Component.\n     *\n     * @param { boolean } b The checked status,default to true.\n     * @returns { On } this {@link On} object.\n     * @throws { BusinessError } 401 - if the input parameters are invalid.\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @since 10\n     * @test\n     */\n    /**\n     * Specifies the checked status of the target Component.\n     *\n     * @param { boolean } [b] - the checked status.Set it default true if null or undefined.\n     * @returns { On } this {@link On} object.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Incorrect parameter types; 2. Parameter verification failed.\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    checked(b?: boolean): On;\n    /**\n     * Specifies the checkable status of the target Component.\n     *\n     * @param { boolean } b The checkable status,default to true.\n     * @returns { On } this {@link On} object.\n     * @throws { BusinessError } 401 - if the input parameters are invalid.\n     * @syscap SystemCapability.Test.UiTest\n     * @since 9\n     * @test\n     */\n    /**\n     * Specifies the checkable status of the target Component.\n     *\n     * @param { boolean } b The checkable status,default to true.\n     * @returns { On } this {@link On} object.\n     * @throws { BusinessError } 401 - if the input parameters are invalid.\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @since 10\n     * @test\n     */\n    /**\n     * Specifies the checkable status of the target Component.\n     *\n     * @param { boolean } [b] - the checkable status.Set it default true if null or undefined.\n     * @returns { On } this {@link On} object.\n     * @throws { BusinessError } 401 - Parameter error. 1. Incorrect parameter types; 2. Parameter verification failed.\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    checkable(b?: boolean): On;\n    /**\n     * Requires that the target Component which is before another Component that specified by the given {@link On}\n     * object,used to locate Component relatively.\n     *\n     * @param { On } on Describes the attribute requirements of Component which the target one is in front of.\n     * @returns { On } this {@link On} object.\n     * @throws { BusinessError } 401 - if the input parameters are invalid.\n     * @syscap SystemCapability.Test.UiTest\n     * @since 9\n     * @test\n     */\n    /**\n     * Requires that the target Component which is before another Component that specified by the given {@link On}\n     * object,used to locate Component relatively.\n     *\n     * @param { On } on - describes the attribute requirements of Component which the target one is in front of.\n     * @returns { On } this {@link On} object.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    isBefore(on: On): On;\n    /**\n     * Requires that the target Component which is after another Component that specified by the given {@link On}\n     * object,used to locate Component relatively.\n     *\n     * @param { On } on Describes the attribute requirements of Component which the target one is in back of.\n     * @returns { On } this {@link On} object.\n     * @throws { BusinessError } 401 - if the input parameters are invalid.\n     * @syscap SystemCapability.Test.UiTest\n     * @since 9\n     * @test\n     */\n    /**\n     * Requires that the target Component which is after another Component that specified by the given {@link On}\n     * object,used to locate Component relatively.\n     *\n     * @param { On } on - describes the attribute requirements of Component which the target one is in back of.\n     * @returns { On } this {@link On} object.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    isAfter(on: On): On;\n    /**\n     * Requires that the target Component which is inside of another Component that specified by the given {@link On}\n     * object,used to locate Component relatively.\n     *\n     * @param { On } on Describes the attribute requirements of Component which the target one is inside of.\n     * @returns { On } this {@link On} object.\n     * @throws { BusinessError } 401 - if the input parameters are invalid.\n     * @syscap SystemCapability.Test.UiTest\n     * @since 10\n     * @test\n     */\n    /**\n     * Requires that the target Component which is inside of another Component that specified by the given {@link On}\n     * object,used to locate Component relatively.\n     *\n     * @param { On } on - describes the attribute requirements of Component which the target one is inside of.\n     * @returns { On } this {@link On} object.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    within(on: On): On;\n    /**\n     * Specifies the bundleName of the application which the window that the target Component is located belongs.\n     *\n     * @param { string } bundleName The bundleName of the specified window.\n     * @returns { On } this {@link On} object.\n     * @throws { BusinessError } 401 - if the input parameters are invalid.\n     * @syscap SystemCapability.Test.UiTest\n     * @since 10\n     * @test\n     */\n    /**\n     * Specifies the bundleName of the application which the window that the target Component is located belongs.\n     *\n     * @param { string } bundleName - the bundleName of the specified window.\n     * @returns { On } this {@link On} object.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    inWindow(bundleName: string): On;\n    /**\n     * Specifies the displayId to which the target Component belongs.\n     *\n     * @param { number } displayId - the Id of the specified display.\n     * @returns { On } this {@link On} object.\n     * @throws { BusinessError } 17000007 - Parameter verification failed.\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 20\n     * @test\n     */\n    belongingDisplay(displayId: number): On;\n    /**\n     * Specifies the description for the target Component.\n     *\n     * @param { string } val - the description value.\n     * @param { MatchPattern } [pattern] - the {@link MatchPattern} of description value,set it default {@link MatchPattern.EQUALS} if null or undefined.\n     * @returns { On } this {@link On} object.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    description(val: string, pattern?: MatchPattern): On;\n    /**\n     * Specifies the id of the target Component.\n     *\n     * @param { string } id - the id value.\n     * @param { MatchPattern } pattern - the {@link MatchPattern} of the text value,Set it default {@link MatchPattern.EQUALS} if null or undefined.\n     * @returns { On } this {@link On} object.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 18\n     * @test\n     */\n    id(id: string, pattern: MatchPattern): On;\n    /**\n     * Specifies the type of the target Component.\n     *\n     * @param { string } tp - The type value.\n     * @param { MatchPattern } pattern - the {@link MatchPattern} of the text value,Set it default {@link MatchPattern.EQUALS} if null or undefined.\n     * @returns { On } this {@link On} object.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 18\n     * @test\n     */\n    type(tp: string, pattern: MatchPattern): On;\n    /**\n     * Specifies the hint for the target Component.\n     *\n     * @param { string } val - the hint value.\n     * @param { MatchPattern } [pattern] - the {@link MatchPattern} of the text value,Set it default {@link MatchPattern.EQUALS} if null or undefined.\n     * @returns { On } this {@link On} object.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 18\n     * @test\n     */\n    hint(val: string, pattern?: MatchPattern): On;\n}\n/**\n * Represents an Component of the ohos application,user can perform operations or query attributes on it.\n *\n * @syscap SystemCapability.Test.UiTest\n * @since 9\n * @test\n */\n/**\n * Represents an Component of the ohos application,user can perform operations or query attributes on it.\n *\n * @syscap SystemCapability.Test.UiTest\n * @atomicservice\n * @since 11\n * @test\n */\n/**\n * Represents an Component of the ohos application,user can perform operations or query attributes on it.\n *\n * @syscap SystemCapability.Test.UiTest\n * @crossplatform\n * @atomicservice\n * @since 12\n * @test\n */\ndeclare class Component {\n    /**\n     * Click this {@link Component}.\n     *\n     * @returns { Promise<void> }\n     * @throws { BusinessError } 17000002 - if the async function was not called with await.\n     * @throws { BusinessError } 17000004 - if the component is invisible or destroyed.\n     * @syscap SystemCapability.Test.UiTest\n     * @since 9\n     * @test\n     */\n    /**\n     * Click this {@link Component}.\n     *\n     * @returns { Promise<void> }\n     * @throws { BusinessError } 17000002 - if the async function was not called with await.\n     * @throws { BusinessError } 17000004 - if the component is invisible or destroyed.\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @since 10\n     * @test\n     */\n    /**\n     * Click this {@link Component}.\n     *\n     * @returns { Promise<void> }\n     * @throws { BusinessError } 17000002 - The async function is not called with await.\n     * @throws { BusinessError } 17000004 - The window or component is invisible or destroyed.\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    click(): Promise<void>;\n    /**\n     * Double click this {@link Component}.\n     *\n     * @returns { Promise<void> }\n     * @throws { BusinessError } 17000002 - if the async function was not called with await.\n     * @throws { BusinessError } 17000004 - if the component is invisible or destroyed.\n     * @syscap SystemCapability.Test.UiTest\n     * @since 9\n     * @test\n     */\n    /**\n     * Double click this {@link Component}.\n     *\n     * @returns { Promise<void> }\n     * @throws { BusinessError } 17000002 - if the async function was not called with await.\n     * @throws { BusinessError } 17000004 - if the component is invisible or destroyed.\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @since 10\n     * @test\n     */\n    /**\n     * Double click this {@link Component}.\n     *\n     * @returns { Promise<void> }\n     * @throws { BusinessError } 17000002 - The async function is not called with await.\n     * @throws { BusinessError } 17000004 - The window or component is invisible or destroyed.\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    doubleClick(): Promise<void>;\n    /**\n     * Long click this {@link Component}.\n     *\n     * @returns { Promise<void> }\n     * @throws { BusinessError } 17000002 - if the async function was not called with await.\n     * @throws { BusinessError } 17000004 - if the component is invisible or destroyed.\n     * @syscap SystemCapability.Test.UiTest\n     * @since 9\n     * @test\n     */\n    /**\n     * Long click this {@link Component}.\n     *\n     * @returns { Promise<void> }\n     * @throws { BusinessError } 17000002 - if the async function was not called with await.\n     * @throws { BusinessError } 17000004 - if the component is invisible or destroyed.\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @since 10\n     * @test\n     */\n    /**\n     * Long click this {@link Component}.\n     *\n     * @returns { Promise<void> }\n     * @throws { BusinessError } 17000002 - The async function is not called with await.\n     * @throws { BusinessError } 17000004 - The window or component is invisible or destroyed.\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    longClick(): Promise<void>;\n    /**\n     * Get the id attribute value.\n     *\n     * @returns { Promise<string> } the id value.\n     * @throws { BusinessError } 17000002 - if the async function was not called with await.\n     * @throws { BusinessError } 17000004 - if the component is invisible or destroyed.\n     * @syscap SystemCapability.Test.UiTest\n     * @since 9\n     * @test\n     */\n    /**\n     * Get the id attribute value.\n     *\n     * @returns { Promise<string> } the id value.\n     * @throws { BusinessError } 17000002 - if the async function was not called with await.\n     * @throws { BusinessError } 17000004 - if the component is invisible or destroyed.\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @since 10\n     * @test\n     */\n    /**\n     * Get the id attribute value.\n     *\n     * @returns { Promise<string> } the id value.\n     * @throws { BusinessError } 17000002 - The async function is not called with await.\n     * @throws { BusinessError } 17000004 - The window or component is invisible or destroyed.\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    getId(): Promise<string>;\n    /**\n     * Get the displayId to which the component belongs.\n     *\n     * @returns { Promise<number> } the displayId value.\n     * @throws { BusinessError } 17000002 - The async function is not called with await.\n     * @throws { BusinessError } 17000004 - The window or component is invisible or destroyed.\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 20\n     * @test\n     */\n    getDisplayId(): Promise<number>;\n    /**\n     * Get the text attribute value.\n     *\n     * @returns { Promise<string> } the text value.\n     * @throws { BusinessError } 17000002 - if the async function was not called with await.\n     * @throws { BusinessError } 17000004 - if the component is invisible or destroyed.\n     * @syscap SystemCapability.Test.UiTest\n     * @since 9\n     * @test\n     */\n    /**\n     * Get the text attribute value.\n     *\n     * @returns { Promise<string> } the text value.\n     * @throws { BusinessError } 17000002 - if the async function was not called with await.\n     * @throws { BusinessError } 17000004 - if the component is invisible or destroyed.\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @since 10\n     * @test\n     */\n    /**\n     * Get the text attribute value.\n     *\n     * @returns { Promise<string> } the text value.\n     * @throws { BusinessError } 17000002 - The async function is not called with await.\n     * @throws { BusinessError } 17000004 - The window or component is invisible or destroyed.\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    getText(): Promise<string>;\n    /**\n     * Get the type name.\n     *\n     * @returns { Promise<string> } the type name.\n     * @throws { BusinessError } 17000002 - if the async function was not called with await.\n     * @throws { BusinessError } 17000004 - if the component is invisible or destroyed.\n     * @syscap SystemCapability.Test.UiTest\n     * @since 9\n     * @test\n     */\n    /**\n     * Get the type name.\n     *\n     * @returns { Promise<string> } the type name.\n     * @throws { BusinessError } 17000002 - if the async function was not called with await.\n     * @throws { BusinessError } 17000004 - if the component is invisible or destroyed.\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @since 10\n     * @test\n     */\n    /**\n     * Get the type name.\n     *\n     * @returns { Promise<string> } the type name.\n     * @throws { BusinessError } 17000002 - The async function is not called with await.\n     * @throws { BusinessError } 17000004 - The window or component is invisible or destroyed.\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    getType(): Promise<string>;\n    /**\n     * Get the clickable status of this {@link Component}.\n     *\n     * @returns { Promise<boolean> } the clickable status.\n     * @throws { BusinessError } 17000002 - if the async function was not called with await.\n     * @throws { BusinessError } 17000004 - if the component is invisible or destroyed.\n     * @syscap SystemCapability.Test.UiTest\n     * @since 9\n     * @test\n     */\n    /**\n     * Get the clickable status of this {@link Component}.\n     *\n     * @returns { Promise<boolean> } the clickable status.\n     * @throws { BusinessError } 17000002 - if the async function was not called with await.\n     * @throws { BusinessError } 17000004 - if the component is invisible or destroyed.\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @since 10\n     * @test\n     */\n    /**\n     * Get the clickable status of this {@link Component}.\n     *\n     * @returns { Promise<boolean> } the clickable status.\n     * @throws { BusinessError } 17000002 - The async function is not called with await.\n     * @throws { BusinessError } 17000004 - The window or component is invisible or destroyed.\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    isClickable(): Promise<boolean>;\n    /**\n     * Get the longClickable status of this {@link Component}.\n     *\n     * @returns { Promise<boolean> } the longClickable status.\n     * @throws { BusinessError } 17000002 - if the async function was not called with await.\n     * @throws { BusinessError } 17000004 - if the component is invisible or destroyed.\n     * @syscap SystemCapability.Test.UiTest\n     * @since 9\n     * @test\n     */\n    /**\n     * Get the longClickable status of this {@link Component}.\n     *\n     * @returns { Promise<boolean> } the longClickable status.\n     * @throws { BusinessError } 17000002 - if the async function was not called with await.\n     * @throws { BusinessError } 17000004 - if the component is invisible or destroyed.\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @since 10\n     * @test\n     */\n    /**\n     * Get the clickable status of this {@link Component}.\n     *\n     * @returns { Promise<boolean> } the clickable status.\n     * @throws { BusinessError } 17000002 - The async function is not called with await.\n     * @throws { BusinessError } 17000004 - The window or component is invisible or destroyed.\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    isLongClickable(): Promise<boolean>;\n    /**\n     * Get the scrollable status of this {@link Component}.\n     *\n     * @returns { Promise<boolean> } the scrollable status.\n     * @throws { BusinessError } 17000002 - if the async function was not called with await.\n     * @throws { BusinessError } 17000004 - if the component is invisible or destroyed.\n     * @syscap SystemCapability.Test.UiTest\n     * @since 9\n     * @test\n     */\n    /**\n     * Get the scrollable status of this {@link Component}.\n     *\n     * @returns { Promise<boolean> } the scrollable status.\n     * @throws { BusinessError } 17000002 - if the async function was not called with await.\n     * @throws { BusinessError } 17000004 - if the component is invisible or destroyed.\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @since 10\n     * @test\n     */\n    /**\n     * Get the scrollable status of this {@link Component}.\n     *\n     * @returns { Promise<boolean> } the scrollable status.\n     * @throws { BusinessError } 17000002 - The async function is not called with await.\n     * @throws { BusinessError } 17000004 - The window or component is invisible or destroyed.\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    isScrollable(): Promise<boolean>;\n    /**\n     * Get the enabled status of this {@link Component}.\n     *\n     * @returns { Promise<boolean> } the enabled status.\n     * @throws { BusinessError } 17000002 - if the async function was not called with await.\n     * @throws { BusinessError } 17000004 - if the component is invisible or destroyed.\n     * @syscap SystemCapability.Test.UiTest\n     * @since 9\n     * @test\n     */\n    /**\n     * Get the enabled status of this {@link Component}.\n     *\n     * @returns { Promise<boolean> } the enabled status.\n     * @throws { BusinessError } 17000002 - if the async function was not called with await.\n     * @throws { BusinessError } 17000004 - if the component is invisible or destroyed.\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @since 10\n     * @test\n     */\n    /**\n     * Get the enabled status of this {@link Component}.\n     *\n     * @returns { Promise<boolean> } the enabled status.\n     * @throws { BusinessError } 17000002 - The async function is not called with await.\n     * @throws { BusinessError } 17000004 - The window or component is invisible or destroyed.\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    isEnabled(): Promise<boolean>;\n    /**\n     * Get the focused status of this {@link Component}.\n     *\n     * @returns { Promise<boolean> } the focused status.\n     * @throws { BusinessError } 17000002 - if the async function was not called with await.\n     * @throws { BusinessError } 17000004 - if the component is invisible or destroyed.\n     * @syscap SystemCapability.Test.UiTest\n     * @since 9\n     * @test\n     */\n    /**\n     * Get the focused status of this {@link Component}.\n     *\n     * @returns { Promise<boolean> } the focused status.\n     * @throws { BusinessError } 17000002 - if the async function was not called with await.\n     * @throws { BusinessError } 17000004 - if the component is invisible or destroyed.\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @since 10\n     * @test\n     */\n    /**\n     * Get the focused status of this {@link Component}.\n     *\n     * @returns { Promise<boolean> } the focused status.\n     * @throws { BusinessError } 17000002 - The async function is not called with await.\n     * @throws { BusinessError } 17000004 - The window or component is invisible or destroyed.\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    isFocused(): Promise<boolean>;\n    /**\n     * Get the selected status of this {@link Component}.\n     *\n     * @returns { Promise<boolean> } the selected status.\n     * @throws { BusinessError } 17000002 - if the async function was not called with await.\n     * @throws { BusinessError } 17000004 - if the component is invisible or destroyed.\n     * @syscap SystemCapability.Test.UiTest\n     * @since 9\n     * @test\n     */\n    /**\n     * Get the selected status of this {@link Component}.\n     *\n     * @returns { Promise<boolean> } the selected status.\n     * @throws { BusinessError } 17000002 - if the async function was not called with await.\n     * @throws { BusinessError } 17000004 - if the component is invisible or destroyed.\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @since 10\n     * @test\n     */\n    /**\n     * Get the selected status of this {@link Component}.\n     *\n     * @returns { Promise<boolean> } the selected status.\n     * @throws { BusinessError } 17000002 - The async function is not called with await.\n     * @throws { BusinessError } 17000004 - The window or component is invisible or destroyed.\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    isSelected(): Promise<boolean>;\n    /**\n     * Get the checked status of this {@link Component}.\n     *\n     * @returns { Promise<boolean> } the checked status.\n     * @throws { BusinessError } 17000002 - if the async function was not called with await.\n     * @throws { BusinessError } 17000004 - if the component is invisible or destroyed.\n     * @syscap SystemCapability.Test.UiTest\n     * @since 9\n     * @test\n     */\n    /**\n     * Get the checked status of this {@link Component}.\n     *\n     * @returns { Promise<boolean> } the checked status.\n     * @throws { BusinessError } 17000002 - if the async function was not called with await.\n     * @throws { BusinessError } 17000004 - if the component is invisible or destroyed.\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @since 10\n     * @test\n     */\n    /**\n     * Get the checked status of this {@link Component}.\n     *\n     * @returns { Promise<boolean> } the checked status.\n     * @throws { BusinessError } 17000002 - The async function is not called with await.\n     * @throws { BusinessError } 17000004 - The window or component is invisible or destroyed.\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    isChecked(): Promise<boolean>;\n    /**\n     * Get the checkable status of this {@link Component}.\n     *\n     * @returns { Promise<boolean> } the checkable status.\n     * @throws { BusinessError } 17000002 - if the async function was not called with await.\n     * @throws { BusinessError } 17000004 - if the component is invisible or destroyed.\n     * @syscap SystemCapability.Test.UiTest\n     * @since 9\n     * @test\n     */\n    /**\n     * Get the checkable status of this {@link Component}.\n     *\n     * @returns { Promise<boolean> } the checkable status.\n     * @throws { BusinessError } 17000002 - if the async function was not called with await.\n     * @throws { BusinessError } 17000004 - if the component is invisible or destroyed.\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @since 10\n     * @test\n     */\n    /**\n     * Get the checkable status of this {@link Component}.\n     *\n     * @returns { Promise<boolean> } the checkable status.\n     * @throws { BusinessError } 17000002 - The async function is not called with await.\n     * @throws { BusinessError } 17000004 - The window or component is invisible or destroyed.\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    isCheckable(): Promise<boolean>;\n    /**\n     * Inject text to this {@link Component},applicable to TextInput.\n     *\n     * @param { string } text The text to inject.\n     * @returns { Promise<void> }\n     * @throws { BusinessError } 401 - if the input parameters are invalid.\n     * @throws { BusinessError } 17000002 - if the async function was not called with await.\n     * @throws { BusinessError } 17000004 - if the component is invisible or destroyed.\n     * @syscap SystemCapability.Test.UiTest\n     * @since 9\n     * @test\n     */\n    /**\n     * Inject text to this {@link Component},applicable to TextInput.\n     *\n     * @param { string } text The text to inject.\n     * @returns { Promise<void> }\n     * @throws { BusinessError } 401 - if the input parameters are invalid.\n     * @throws { BusinessError } 17000002 - if the async function was not called with await.\n     * @throws { BusinessError } 17000004 - if the component is invisible or destroyed.\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @since 10\n     * @test\n     */\n    /**\n     * Inject text to this {@link Component},applicable to TextInput.\n     *\n     * @param { string } text - the text to inject.\n     * @returns { Promise<void> }\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 17000002 - The async function is not called with await.\n     * @throws { BusinessError } 17000004 - The window or component is invisible or destroyed.\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    inputText(text: string): Promise<void>;\n    /**\n     * Inject text to this {@link Component},applicable to TextInput.\n     *\n     * @param { string } text - the text to inject.\n     * @param { InputTextMode } mode - specific the mode to input text.\n     * @returns { Promise<void> }\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 801 - Capability not supported, function can not work correctly due to limited device capabilities.\n     * @throws { BusinessError } 17000002 - The async function is not called with await.\n     * @throws { BusinessError } 17000004 - The window or component is invisible or destroyed.\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 20\n     * @test\n     */\n    inputText(text: string, mode: InputTextMode): Promise<void>;\n    /**\n     * Clear text of this {@link Component},applicable to TextInput.\n     *\n     * @returns { Promise<void> }\n     * @throws { BusinessError } 17000002 - if the async function was not called with await.\n     * @throws { BusinessError } 17000004 - if the component is invisible or destroyed.\n     * @syscap SystemCapability.Test.UiTest\n     * @since 9\n     * @test\n     */\n    /**\n     * Clear text of this {@link Component},applicable to TextInput.\n     *\n     * @returns { Promise<void> }\n     * @throws { BusinessError } 17000002 - if the async function was not called with await.\n     * @throws { BusinessError } 17000004 - if the component is invisible or destroyed.\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @since 10\n     * @test\n     */\n    /**\n     * Clear text of this {@link Component},applicable to TextInput.\n     *\n     * @returns { Promise<void> }\n     * @throws { BusinessError } 17000002 - The async function is not called with await.\n     * @throws { BusinessError } 17000004 - The window or component is invisible or destroyed.\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    clearText(): Promise<void>;\n    /**\n     * Scroll on this {@link Component} to the top,applicable to scrollable one.\n     *\n     * @param { number } speed The speed of swipe (pixels per second),default is 600,the value ranges from 200 to 40000,set it 600 if out of range.\n     * @returns { Promise<void> }\n     * @throws { BusinessError } 401 - if the input parameters are invalid.\n     * @throws { BusinessError } 17000002 - if the async function was not called with await.\n     * @throws { BusinessError } 17000004 - if the component is invisible or destroyed.\n     * @syscap SystemCapability.Test.UiTest\n     * @since 9\n     * @test\n     */\n    /**\n     * Scroll on this {@link Component} to the top,applicable to scrollable one.\n     *\n     * @param { number } speed The speed of swipe (pixels per second),default is 600,the value ranges from 200 to 40000,set it 600 if out of range.\n     * @returns { Promise<void> }\n     * @throws { BusinessError } 401 - if the input parameters are invalid.\n     * @throws { BusinessError } 17000002 - if the async function was not called with await.\n     * @throws { BusinessError } 17000004 - if the component is invisible or destroyed.\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @since 10\n     * @test\n     */\n    /**\n     * Scroll on this {@link Component} to the top,applicable to scrollable one.\n     *\n     * @param { number } [speed] - the speed of swipe(pixels per second),ranges from 200 to 40000.Set it default 600 if out of range or null or undefined.\n     * @returns { Promise<void> }\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Incorrect parameter types; 2. Parameter verification failed.\n     * @throws { BusinessError } 17000002 - The async function is not called with await.\n     * @throws { BusinessError } 17000004 - The window or component is invisible or destroyed.\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    scrollToTop(speed?: number): Promise<void>;\n    /**\n     * Scroll on this {@link Component} to the bottom,applicable to scrollable one.\n     *\n     * @param { number } speed The speed of swipe (pixels per second),default is 600,the value ranges from 200 to 40000,set it 600 if out of range.\n     * @returns { Promise<void> }\n     * @throws { BusinessError } 401 - if the input parameters are invalid.\n     * @throws { BusinessError } 17000002 - if the async function was not called with await.\n     * @throws { BusinessError } 17000004 - if the component is invisible or destroyed.\n     * @syscap SystemCapability.Test.UiTest\n     * @since 9\n     * @test\n     */\n    /**\n     * Scroll on this {@link Component} to the bottom,applicable to scrollable one.\n     *\n     * @param { number } speed The speed of swipe (pixels per second),default is 600,the value ranges from 200 to 40000,set it 600 if out of range.\n     * @returns { Promise<void> }\n     * @throws { BusinessError } 401 - if the input parameters are invalid.\n     * @throws { BusinessError } 17000002 - if the async function was not called with await.\n     * @throws { BusinessError } 17000004 - if the component is invisible or destroyed.\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @since 10\n     * @test\n     */\n    /**\n     * Scroll on this {@link Component} to the bottom,applicable to scrollable one.\n     *\n     * @param { number } [speed] - the speed of swipe(pixels per second),ranges from 200 to 40000. Set it default 600 if out of range or null or undefined.\n     * @returns { Promise<void> }\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Incorrect parameter types; 2. Parameter verification failed.\n     * @throws { BusinessError } 17000002 - The async function is not called with await.\n     * @throws { BusinessError } 17000004 - The window or component is invisible or destroyed.\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    scrollToBottom(speed?: number): Promise<void>;\n    /**\n     * Scroll on this {@link Component}to find matched {@link Component},applicable to scrollable one.\n     *\n     * @param { On } on The attribute requirements of the target {@link Component}.\n     * @returns { Promise<Component> } the found result,or undefined if not found.\n     * @throws { BusinessError } 401 - if the input parameters are invalid.\n     * @throws { BusinessError } 17000002 - if the async function was not called with await.\n     * @throws { BusinessError } 17000004 - if the component is invisible or destroyed.\n     * @syscap SystemCapability.Test.UiTest\n     * @since 9\n     * @test\n     */\n    /**\n     * Scroll on this {@link Component}to find matched {@link Component},applicable to scrollable one.\n     *\n     * @param { On } on The attribute requirements of the target {@link Component}.\n     * @returns { Promise<Component> } the found result,or undefined if not found.\n     * @throws { BusinessError } 401 - if the input parameters are invalid.\n     * @throws { BusinessError } 17000002 - if the async function was not called with await.\n     * @throws { BusinessError } 17000004 - if the component is invisible or destroyed.\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @since 10\n     * @test\n     */\n    /**\n     * Scroll on this {@link Component}to find matched {@link Component},applicable to scrollable one.\n     *\n     * @param { On } on - the attribute requirements of the target {@link Component}.\n     * @returns { Promise<Component> } the found result,or undefined if not found.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 17000002 - The async function is not called with await.\n     * @throws { BusinessError } 17000004 - The window or component is invisible or destroyed.\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    scrollSearch(on: On): Promise<Component>;\n    /**\n     * Get the bounds rect of this {@link Component}.\n     *\n     * @returns { Promise<Rect> } the bounds rect object.\n     * @throws { BusinessError } 17000002 - if the async function was not called with await.\n     * @throws { BusinessError } 17000004 - if the component is invisible or destroyed.\n     * @syscap SystemCapability.Test.UiTest\n     * @since 9\n     * @test\n     */\n    /**\n     * Get the bounds rect of this {@link Component}.\n     *\n     * @returns { Promise<Rect> } the bounds rect object.\n     * @throws { BusinessError } 17000002 - if the async function was not called with await.\n     * @throws { BusinessError } 17000004 - if the component is invisible or destroyed.\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    /**\n     * Get the bounds rect of this {@link Component}.\n     *\n     * @returns { Promise<Rect> } the bounds rect object.\n     * @throws { BusinessError } 17000002 - The async function is not called with await.\n     * @throws { BusinessError } 17000004 - The window or component is invisible or destroyed.\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     * @test\n     */\n    getBounds(): Promise<Rect>;\n    /**\n     * Get the boundsCenter of this {@link Component}.\n     *\n     * @returns { Promise<Point> } the boundsCenter object.\n     * @throws { BusinessError } 17000002 - if the async function was not called with await.\n     * @throws { BusinessError } 17000004 - if the component is invisible or destroyed.\n     * @syscap SystemCapability.Test.UiTest\n     * @since 9\n     * @test\n     */\n    /**\n     * Get the boundsCenter of this {@link Component}.\n     *\n     * @returns { Promise<Point> } the boundsCenter object.\n     * @throws { BusinessError } 17000002 - if the async function was not called with await.\n     * @throws { BusinessError } 17000004 - if the component is invisible or destroyed.\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @since 10\n     * @test\n     */\n    /**\n     * Get the boundsCenter of this {@link Component}.\n     *\n     * @returns { Promise<Point> } the boundsCenter object.\n     * @throws { BusinessError } 17000002 - The async function is not called with await.\n     * @throws { BusinessError } 17000004 - The window or component is invisible or destroyed.\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    getBoundsCenter(): Promise<Point>;\n    /**\n     * Drag this {@link Component} to the bounds rect of target Component.\n     *\n     * @param { Component } target The target {@link Component}.\n     * @returns { Promise<void> }\n     * @throws { BusinessError } 401 - if the input parameters are invalid.\n     * @throws { BusinessError } 17000002 - if the async function was not called with await.\n     * @throws { BusinessError } 17000004 - if the component is invisible or destroyed.\n     * @syscap SystemCapability.Test.UiTest\n     * @since 9\n     * @test\n     */\n    /**\n     * Drag this {@link Component} to the bounds rect of target Component.\n     *\n     * @param { Component } target - the target {@link Component}.\n     * @returns { Promise<void> }\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 17000002 - The async function is not called with await.\n     * @throws { BusinessError } 17000004 - The window or component is invisible or destroyed.\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    dragTo(target: Component): Promise<void>;\n    /**\n     * Pinch enlarge this {@link Component} to the target scale.\n     *\n     * @param { number } scale The scale of the pinch enlarge this {@link Component}'s size.\n     * @returns { Promise<void> }\n     * @throws { BusinessError } 401 - if the input parameters are invalid.\n     * @throws { BusinessError } 17000002 - if the async function was not called with await.\n     * @throws { BusinessError } 17000004 - if the component is invisible or destroyed.\n     * @syscap SystemCapability.Test.UiTest\n     * @since 9\n     * @test\n     */\n    /**\n     * Pinch enlarge this {@link Component} to the target scale.\n     *\n     * @param { number } scale - the scale of the pinch enlarge this {@link Component}'s size, ranges greater than 1.\n     * @returns { Promise<void> }\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 17000002 - The async function is not called with await.\n     * @throws { BusinessError } 17000004 - The window or component is invisible or destroyed.\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    pinchOut(scale: number): Promise<void>;\n    /**\n     * Pinch shrink this {@link Component} to the target scale.\n     *\n     * @param { number } scale The scale of the pinch shrink this {@link Component}'s size.\n     * @returns { Promise<void> }\n     * @throws { BusinessError } 401 - if the input parameters are invalid.\n     * @throws { BusinessError } 17000002 - if the async function was not called with await.\n     * @throws { BusinessError } 17000004 - if the component is invisible or destroyed.\n     * @syscap SystemCapability.Test.UiTest\n     * @since 9\n     * @test\n     */\n    /**\n     * Pinch shrink this {@link Component} to the target scale.\n     *\n     * @param { number } scale - the scale of the pinch shrink this {@link Component}'s size, ranges from 0 to 1.\n     * @returns { Promise<void> }\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 17000002 - The async function is not called with await.\n     * @throws { BusinessError } 17000004 - The window or component is invisible or destroyed.\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    pinchIn(scale: number): Promise<void>;\n    /**\n     * Get the description attribute value.\n     *\n     * @returns { Promise<string> } the description value.\n     * @throws { BusinessError } 17000002 - The async function is not called with await.\n     * @throws { BusinessError } 17000004 - The window or component is invisible or destroyed.\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    getDescription(): Promise<string>;\n    /**\n     * Get the hint attribute value.\n     *\n     * @returns { Promise<string> } the hint value.\n     * @throws { BusinessError } 17000002 - The async function is not called with await.\n     * @throws { BusinessError } 17000004 - The window or component is invisible or destroyed.\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 18\n     * @test\n     */\n    getHint(): Promise<string>;\n    /**\n     * Scroll on this {@link Component}to find matched {@link Component},applicable to scrollable one.\n     *\n     * @param { On } on - the attribute requirements of the target {@link Component}.\n     * @param { boolean } [vertical] - Whether the swipe direction is vertical, default is true.\n     * @param { number } [offset] - Offset from the swipe start/end point to the component border, default is 80.\n     * @returns { Promise<Component> } the found result,or undefined if not found.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 17000002 - The async function is not called with await.\n     * @throws { BusinessError } 17000004 - The window or component is invisible or destroyed.\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 18\n     * @test\n     */\n    scrollSearch(on: On, vertical?: boolean, offset?: number): Promise<Component>;\n}\n/**\n * The unified facade of UiTest framework,can be used to find {@link Component},trigger keyEvents,perform\n * coordinates-based UI actions,capture screen and so on.\n *\n * @syscap SystemCapability.Test.UiTest\n * @since 9\n * @test\n */\n/**\n * The unified facade of UiTest framework,can be used to find {@link Component},trigger keyEvents,perform\n * coordinates-based UI actions,capture screen and so on.\n *\n * @syscap SystemCapability.Test.UiTest\n * @atomicservice\n * @since 11\n * @test\n */\n/**\n * The unified facade of UiTest framework,can be used to find {@link Component},trigger keyEvents,perform\n * coordinates-based UI actions,capture screen and so on.\n *\n * @syscap SystemCapability.Test.UiTest\n * @crossplatform\n * @atomicservice\n * @since 12\n * @test\n */\ndeclare class Driver {\n    /**\n     * Create an {@link Driver} object.\n     *\n     * @returns { Driver } the {@link Driver} object.\n     * @throws { BusinessError } 17000001 - if the test framework failed to initialize.\n     * @syscap SystemCapability.Test.UiTest\n     * @since 9\n     * @test\n     */\n    /**\n     * Create an {@link Driver} object.\n     *\n     * @returns { Driver } the {@link Driver} object.\n     * @throws { BusinessError } 17000001 - if the test framework failed to initialize.\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @since 10\n     * @test\n     */\n    /**\n     * Create an {@link Driver} object.\n     *\n     * @returns { Driver } the {@link Driver} object.\n     * @throws { BusinessError } 17000001 - Initialization failed.\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    static create(): Driver;\n    /**\n     * Delay with specified duration.\n     *\n     * @param { number } duration The delay duration in milliseconds.\n     * @returns { Promise<void> }\n     * @throws { BusinessError } 401 - if the input parameters are invalid.\n     * @throws { BusinessError } 17000002 - if the async function was not called with await.\n     * @syscap SystemCapability.Test.UiTest\n     * @since 9\n     * @test\n     */\n    /**\n     * Delay with specified duration.\n     *\n     * @param { number } duration The delay duration in milliseconds.\n     * @returns { Promise<void> }\n     * @throws { BusinessError } 401 - if the input parameters are invalid.\n     * @throws { BusinessError } 17000002 - if the async function was not called with await.\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @since 10\n     * @test\n     */\n    /**\n     * Delay with specified duration.\n     *\n     * @param { number } duration - the delay duration in milliseconds, not less than 0.\n     * @returns { Promise<void> }\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 17000002 - The async function is not called with await.\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    delayMs(duration: number): Promise<void>;\n    /**\n     * Find the first matched {@link Component} on current UI.\n     *\n     * @param { On } on The attribute requirements of the target {@link Component}.\n     * @returns { Promise<Component> } the first matched {@link Component} or undefined.\n     * @throws { BusinessError } 401 - if the input parameters are invalid.\n     * @throws { BusinessError } 17000002 - if the async function was not called with await.\n     * @syscap SystemCapability.Test.UiTest\n     * @since 9\n     * @test\n     */\n    /**\n     * Find the first matched {@link Component} on current UI.\n     *\n     * @param { On } on The attribute requirements of the target {@link Component}.\n     * @returns { Promise<Component> } the first matched {@link Component} or undefined.\n     * @throws { BusinessError } 401 - if the input parameters are invalid.\n     * @throws { BusinessError } 17000002 - if the async function was not called with await.\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @since 10\n     * @test\n     */\n    /**\n     * Find the first matched {@link Component} on current UI.\n     *\n     * @param { On } on - the attribute requirements of the target {@link Component}.\n     * @returns { Promise<Component> } the first matched {@link Component} or undefined.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 17000002 - The async function is not called with await.\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    findComponent(on: On): Promise<Component>;\n    /**\n     * Find the first matched {@link UiWindow} window.\n     *\n     * @param { WindowFilter } filter The filer condition of the target {@link UiWindow}.\n     * @returns { Promise<UiWindow> } the first matched {@link UiWindow} or undefined.\n     * @throws { BusinessError } 401 - if the input parameters are invalid.\n     * @throws { BusinessError } 17000002 - if the async function was not called with await.\n     * @syscap SystemCapability.Test.UiTest\n     * @since 9\n     * @test\n     */\n    /**\n     * Find the first matched {@link UiWindow} window.\n     *\n     * @param { WindowFilter } filter - the filer condition of the target {@link UiWindow}.\n     * @returns { Promise<UiWindow> } the first matched {@link UiWindow} or undefined.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 17000002 - The async function is not called with await.\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    findWindow(filter: WindowFilter): Promise<UiWindow>;\n    /**\n     * Find the first matched {@link Component} on current UI during the time given.\n     *\n     * @param { On } on The attribute requirements of the target {@link Component}.\n     * @param { number } time Duration of finding in milliseconds\n     * @returns { Promise<Component> } the first matched {@link Component} or undefined.\n     * @throws { BusinessError } 401 - if the input parameters are invalid.\n     * @throws { BusinessError } 17000002 - if the async function was not called with await.\n     * @syscap SystemCapability.Test.UiTest\n     * @since 9\n     * @test\n     */\n    /**\n     * Find the first matched {@link Component} on current UI during the time given.\n     *\n     * @param { On } on - the attribute requirements of the target {@link Component}.\n     * @param { number } time - duration of finding in milliseconds, not less than 0.\n     * @returns { Promise<Component> } the first matched {@link Component} or undefined.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 17000002 - The async function is not called with await.\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    waitForComponent(on: On, time: number): Promise<Component>;\n    /**\n     * Find all the matched {@link Component}s on current UI.\n     *\n     * @param { On } on The attribute requirements of the target {@link Component}.\n     * @returns { Promise<Array<Component>> } the matched {@link Component}s list.\n     * @throws { BusinessError } 401 - if the input parameters are invalid.\n     * @throws { BusinessError } 17000002 - if the async function was not called with await.\n     * @syscap SystemCapability.Test.UiTest\n     * @since 9\n     * @test\n     */\n    /**\n     * Find all the matched {@link Component}s on current UI.\n     *\n     * @param { On } on The attribute requirements of the target {@link Component}.\n     * @returns { Promise<Array<Component>> } the matched {@link Component}s list.\n     * @throws { BusinessError } 401 - if the input parameters are invalid.\n     * @throws { BusinessError } 17000002 - if the async function was not called with await.\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @since 10\n     * @test\n     */\n    /**\n     * Find all the matched {@link Component}s on current UI.\n     *\n     * @param { On } on - the attribute requirements of the target {@link Component}.\n     * @returns { Promise<Array<Component>> } the matched {@link Component}s list.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 17000002 - The async function is not called with await.\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    findComponents(on: On): Promise<Array<Component>>;\n    /**\n     * Assert t the matched {@link Component}s exists on current UI;if not,assertError will be raised.\n     *\n     * @param { On } on The attribute requirements of the target {@link Component}.\n     * @returns { Promise<void> }\n     * @throws { BusinessError } 401 - if the input parameters are invalid.\n     * @throws { BusinessError } 17000002 - if the async function was not called with await.\n     * @throws { BusinessError } 17000003 - if the assertion failed.\n     * @syscap SystemCapability.Test.UiTest\n     * @since 9\n     * @test\n     */\n    /**\n     * Assert t the matched {@link Component}s exists on current UI;if not,assertError will be raised.\n     *\n     * @param { On } on The attribute requirements of the target {@link Component}.\n     * @returns { Promise<void> }\n     * @throws { BusinessError } 401 - if the input parameters are invalid.\n     * @throws { BusinessError } 17000002 - if the async function was not called with await.\n     * @throws { BusinessError } 17000003 - if the assertion failed.\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @since 10\n     * @test\n     */\n    /**\n     * Assert t the matched {@link Component}s exists on current UI;if not,assertError will be raised.\n     *\n     * @param { On } on - the attribute requirements of the target {@link Component}.\n     * @returns { Promise<void> }\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 17000002 - The async function is not called with await.\n     * @throws { BusinessError } 17000003 - Assertion failed.\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    assertComponentExist(on: On): Promise<void>;\n    /**\n     * Press the BACK key.\n     *\n     * @returns { Promise<void> }\n     * @throws { BusinessError } 17000002 - if the async function was not called with await.\n     * @syscap SystemCapability.Test.UiTest\n     * @since 9\n     * @test\n     */\n    /**\n     * Press the BACK key.\n     *\n     * @returns { Promise<void> }\n     * @throws { BusinessError } 17000002 - if the async function was not called with await.\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @since 10\n     * @test\n     */\n    /**\n     * Press the BACK key.\n     *\n     * @returns { Promise<void> }\n     * @throws { BusinessError } 17000002 - The async function is not called with await.\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    pressBack(): Promise<void>;\n    /**\n     * Press the BACK key on the specified display.\n     *\n     * @param { number } displayId - the Id of the specified display.\n     * @returns { Promise<void> }\n     * @throws { BusinessError } 17000002 - The async function is not called with await.\n     * @throws { BusinessError } 17000007 - Parameter verification failed.\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 20\n     * @test\n     */\n    pressBack(displayId: number): Promise<void>;\n    /**\n     * Press the specified key.\n     *\n     * @param { number } keyCode the target keyCode.\n     * @returns { Promise<void> }\n     * @throws { BusinessError } 401 - if the input parameters are invalid.\n     * @throws { BusinessError } 17000002 - if the async function was not called with await.\n     * @syscap SystemCapability.Test.UiTest\n     * @since 9\n     * @test\n     */\n    /**\n     * Press the specified key.\n     *\n     * @param { number } keyCode - the target keyCode.\n     * @returns { Promise<void> }\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 17000002 - The async function is not called with await.\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    triggerKey(keyCode: number): Promise<void>;\n    /**\n     * Press the specified key on the specified display.\n     *\n     * @param { number } keyCode - the target keyCode.\n     * @param { number } displayId - the Id of the specified display.\n     * @returns { Promise<void> }\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 17000002 - The async function is not called with await.\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 20\n     * @test\n     */\n    triggerKey(keyCode: number, displayId: number): Promise<void>;\n    /**\n     * Press two or three key combinations\n     *\n     * @param { number } key0 the first keyCode.\n     * @param { number } key1 the second keyCode.\n     * @param { number } key2 the third keyCode.\n     * @returns { Promise<void> }\n     * @throws { BusinessError } 401 - if the input parameters are invalid.\n     * @throws { BusinessError } 17000002 - if the async function was not called with await.\n     * @syscap SystemCapability.Test.UiTest\n     * @since 9\n     * @test\n     */\n    /**\n     * Press two or three key combinations\n     *\n     * @param { number } key0 - the first keyCode.\n     * @param { number } key1 - the second keyCode.\n     * @param { number } [key2] - the third keyCode,set it default 0 if null or undefined.\n     * @returns { Promise<void> }\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 17000002 - The async function is not called with await.\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    triggerCombineKeys(key0: number, key1: number, key2?: number): Promise<void>;\n    /**\n     * Press two or three key combinations on the specified display.\n     *\n     * @param { number } key0 - the first keyCode.\n     * @param { number } key1 - the second keyCode.\n     * @param { number } [key2] - the third keyCode,set it default 0 if null or undefined.\n     * @param { number } [displayId] - the Id of the specified display, default is the displayId of the main screen.\n     * @returns { Promise<void> }\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 17000002 - The async function is not called with await.\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 20\n     * @test\n     */\n    triggerCombineKeys(key0: number, key1: number, key2?: number, displayId?: number): Promise<void>;\n    /**\n     * Click on the specified location on the screen.\n     *\n     * @param { number } x The x-coordinate.\n     * @param { number } y The y-coordinate.\n     * @returns { Promise<void> }\n     * @throws { BusinessError } 401 - if the input parameters are invalid.\n     * @throws { BusinessError } 17000002 - if the async function was not called with await.\n     * @syscap SystemCapability.Test.UiTest\n     * @since 9\n     * @test\n     */\n    /**\n     * Click on the specified location on the screen.\n     *\n     * @param { number } x The x-coordinate.\n     * @param { number } y The y-coordinate.\n     * @returns { Promise<void> }\n     * @throws { BusinessError } 401 - if the input parameters are invalid.\n     * @throws { BusinessError } 17000002 - if the async function was not called with await.\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @since 10\n     * @test\n     */\n    /**\n     * Click on the specified location on the screen.\n     *\n     * @param { number } x - the x-coordinate, not less than 0.\n     * @param { number } y - the y-coordinate, not less than 0.\n     * @returns { Promise<void> }\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 17000002 - The async function is not called with await.\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    click(x: number, y: number): Promise<void>;\n    /**\n     * DoubleClick on the specified location on the screen.\n     *\n     * @param { number } x The x-coordinate.\n     * @param { number } y The y-coordinate.\n     * @returns { Promise<void> }\n     * @throws { BusinessError } 401 - if the input parameters are invalid.\n     * @throws { BusinessError } 17000002 - if the async function was not called with await.\n     * @syscap SystemCapability.Test.UiTest\n     * @since 9\n     * @test\n     */\n    /**\n     * DoubleClick on the specified location on the screen.\n     *\n     * @param { number } x The x-coordinate.\n     * @param { number } y The y-coordinate.\n     * @returns { Promise<void> }\n     * @throws { BusinessError } 401 - if the input parameters are invalid.\n     * @throws { BusinessError } 17000002 - if the async function was not called with await.\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @since 10\n     * @test\n     */\n    /**\n     * DoubleClick on the specified location on the screen.\n     *\n     * @param { number } x - the x-coordinate, not less than 0.\n     * @param { number } y - the y-coordinate, not less than 0.\n     * @returns { Promise<void> }\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 17000002 - The async function is not called with await.\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    doubleClick(x: number, y: number): Promise<void>;\n    /**\n     * LongClick on the specified location on the screen.\n     *\n     * @param { number } x The x-coordinate.\n     * @param { number } y The y-coordinate.\n     * @returns { Promise<void> }\n     * @throws { BusinessError } 401 - if the input parameters are invalid.\n     * @throws { BusinessError } 17000002 - if the async function was not called with await.\n     * @syscap SystemCapability.Test.UiTest\n     * @since 9\n     * @test\n     */\n    /**\n     * LongClick on the specified location on the screen.\n     *\n     * @param { number } x The x-coordinate.\n     * @param { number } y The y-coordinate.\n     * @returns { Promise<void> }\n     * @throws { BusinessError } 401 - if the input parameters are invalid.\n     * @throws { BusinessError } 17000002 - if the async function was not called with await.\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @since 10\n     * @test\n     */\n    /**\n     * LongClick on the specified location on the screen.\n     *\n     * @param { number } x - the x-coordinate, not less than 0.\n     * @param { number } y - the y-coordinate, not less than 0.\n     * @returns { Promise<void> }\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 17000002 - The async function is not called with await.\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    longClick(x: number, y: number): Promise<void>;\n    /**\n     * Swipe on the screen between the specified points.\n     *\n     * @param { number } startx The x-coordinate of the starting point.\n     * @param { number } starty The y-coordinate of the starting point.\n     * @param { number } endx The x-coordinate of the ending point.\n     * @param { number } endy The y-coordinate of the ending point.\n     * @param { number } speed The speed of swipe (pixels per second),default is 600,the value ranges from 200 to 40000,set it 600 if out of range.\n     * @returns { Promise<void> }\n     * @throws { BusinessError } 401 - if the input parameters are invalid.\n     * @throws { BusinessError } 17000002 - if the async function was not called with await.\n     * @syscap SystemCapability.Test.UiTest\n     * @since 9\n     * @test\n     */\n    /**\n     * Swipe on the screen between the specified points.\n     *\n     * @param { number } startx The x-coordinate of the starting point.\n     * @param { number } starty The y-coordinate of the starting point.\n     * @param { number } endx The x-coordinate of the ending point.\n     * @param { number } endy The y-coordinate of the ending point.\n     * @param { number } speed The speed of swipe (pixels per second),default is 600,the value ranges from 200 to 40000,set it 600 if out of range.\n     * @returns { Promise<void> }\n     * @throws { BusinessError } 401 - if the input parameters are invalid.\n     * @throws { BusinessError } 17000002 - if the async function was not called with await.\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @since 10\n     * @test\n     */\n    /**\n     * Swipe on the screen between the specified points.\n     *\n     * @param { number } startx - the x-coordinate of the starting point, not less than 0.\n     * @param { number } starty - the y-coordinate of the starting point, not less than 0.\n     * @param { number } endx - the x-coordinate of the ending point, not less than 0.\n     * @param { number } endy - the y-coordinate of the ending point, not less than 0.\n     * @param { number } [speed] - the speed of swipe(pixels per second),ranges from 200 to 40000. Set it default 600 if out of range or null or undefined.\n     * @returns { Promise<void> }\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 17000002 - The async function is not called with await.\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    swipe(startx: number, starty: number, endx: number, endy: number, speed?: number): Promise<void>;\n    /**\n     * Drag on the screen between the specified points.\n     *\n     * @param { number } startx The x-coordinate of the starting point.\n     * @param { number } starty The y-coordinate of the starting point.\n     * @param { number } endx The x-coordinate of the ending point.\n     * @param { number } endy The y-coordinate of the ending point.\n     * @param { number } speed The speed of swipe (pixels per second),default is 600,the value ranges from 200 to 40000,set it 600 if out of range.\n     * @returns { Promise<void> }\n     * @throws { BusinessError } 401 - if the input parameters are invalid.\n     * @throws { BusinessError } 17000002 - if the async function was not called with await.\n     * @syscap SystemCapability.Test.UiTest\n     * @since 9\n     * @test\n     */\n    /**\n     * Drag on the screen between the specified points.\n     *\n     * @param { number } startx - the x-coordinate of the starting point, not less than 0.\n     * @param { number } starty - the y-coordinate of the starting point, not less than 0.\n     * @param { number } endx - the x-coordinate of the ending point, not less than 0.\n     * @param { number } endy - the y-coordinate of the ending point, not less than 0.\n     * @param { number } [speed] the speed of drag(pixels per second),ranges from 200 to 40000. Set it default 600 if out of range or null or undefined.\n     * @returns { Promise<void> }\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 17000002 - The async function is not called with await.\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    drag(startx: number, starty: number, endx: number, endy: number, speed?: number): Promise<void>;\n    /**\n     * Click on the specified location on the screen.\n     *\n     * @param { Point } point - the coordinate point where the finger touches the screen.\n     * @returns { Promise<void> }\n     * @throws { BusinessError } 17000002 - The async function is not called with await.\n     * @throws { BusinessError } 17000007 - Parameter verification failed.\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 20\n     * @test\n     */\n    clickAt(point: Point): Promise<void>;\n    /**\n     * DoubleClick on the specified location on the screen.\n     *\n     * @param { Point } point - the coordinate point where the finger touches the screen.\n     * @returns { Promise<void> }\n     * @throws { BusinessError } 17000002 - The async function is not called with await.\n     * @throws { BusinessError } 17000007 - Parameter verification failed.\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 20\n     * @test\n     */\n    doubleClickAt(point: Point): Promise<void>;\n    /**\n     * LongClick on the specified location on the screen, specifies the duration if necessary.\n     *\n     * @param { Point } point - the coordinate point where the finger touches the screen.\n     * @param { number } [duration] - duration of longClick in millisecond, the minimum and default are 1500.\n     * @returns { Promise<void> }\n     * @throws { BusinessError } 17000002 - The async function is not called with await.\n     * @throws { BusinessError } 17000007 - Parameter verification failed.\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 20\n     * @test\n     */\n    longClickAt(point: Point, duration?: number): Promise<void>;\n    /**\n     * Swipe on the screen between the specified points.\n     *\n     * @param { Point } from - the coordinate point where the finger touches the screen.\n     * @param { Point } to - the coordinate point where the finger leaves the screen.\n     * @param { number } [speed] - speed of swipe(pixels per second),the value ranges from 200 to 40000.Set it default 600 if out out of range or null or undefined.\n     * @returns { Promise<void> }\n     * @throws { BusinessError } 17000002 - The async function is not called with await.\n     * @throws { BusinessError } 17000007 - Parameter verification failed.\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 20\n     * @test\n     */\n    swipeBetween(from: Point, to: Point, speed?: number): Promise<void>;\n    /**\n     * Drag on the screen between the specified points.\n     *\n     * @param { Point } from - the coordinate point where the finger touches the screen.\n     * @param { Point } to - the coordinate point where the finger leaves the screen.\n     * @param { number } [speed] - speed of drag(pixels per second),the value ranges from 200 to 40000.Set it default 600 if out out of range or null or undefined.\n     * @param { number } [duration] - duration of longClick before drag in millisecond, the minimum and default values are 1500.\n     * @returns { Promise<void> }\n     * @throws { BusinessError } 17000002 - The async function is not called with await.\n     * @throws { BusinessError } 17000007 - Parameter verification failed.\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 20\n     * @test\n     */\n    dragBetween(from: Point, to: Point, speed?: number, duration?: number): Promise<void>;\n    /**\n     * Capture current screen and save as picture which PNG format.\n     *\n     * @param { string } savePath the path where to store the picture.\n     * @returns { Promise<boolean> } true if screen-capturing and file-storing are completed successfully,false otherwise.\n     * @throws { BusinessError } 401 - if the input parameters are invalid.\n     * @throws { BusinessError } 17000002 - if the async function was not called with await.\n     * @syscap SystemCapability.Test.UiTest\n     * @since 9\n     * @test\n     */\n    /**\n     * Capture current screen and save as picture which PNG format.\n     *\n     * @param { string } savePath - the path where to store the picture, must be in the application sandbox directory.\n     * @returns { Promise<boolean> } true if screen-capturing and file-storing are completed successfully,false otherwise.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 17000002 - The async function is not called with await.\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    screenCap(savePath: string): Promise<boolean>;\n    /**\n     * Capture specified screen and save as picture which PNG format.\n     *\n     * @param { string } savePath - the path where to store the picture, must be in the application sandbox directory.\n     * @param { number } displayId - the Id of the specified display.\n     * @returns { Promise<boolean> } true if screen-capturing and file-storing are completed successfully,false otherwise.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 17000002 - The async function is not called with await.\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 20\n     * @test\n     */\n    screenCap(savePath: string, displayId: number): Promise<boolean>;\n    /**\n     * Set the rotation of the device display.\n     *\n     * @param { DisplayRotation } rotation The target rotation to set.\n     * @returns { Promise<void> }\n     * @throws { BusinessError } 401 - if the input parameters are invalid.\n     * @throws { BusinessError } 17000002 - if the async function was not called with await.\n     * @syscap SystemCapability.Test.UiTest\n     * @since 9\n     * @test\n     */\n    /**\n     * Set the rotation of the device display.\n     *\n     * @param { DisplayRotation } rotation - the target rotation to set.\n     * @returns { Promise<void> }\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 17000002 - The async function is not called with await.\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    setDisplayRotation(rotation: DisplayRotation): Promise<void>;\n    /**\n     * Get the rotation of the device display.\n     *\n     * @returns { Promise<DisplayRotation> } the current display rotation.\n     * @throws { BusinessError } 17000002 - if the async function was not called with await.\n     * @syscap SystemCapability.Test.UiTest\n     * @since 9\n     * @test\n     */\n    /**\n     * Get the rotation of the device display.\n     *\n     * @returns { Promise<DisplayRotation> } the current display rotation.\n     * @throws { BusinessError } 17000002 - The async function is not called with await.\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    getDisplayRotation(): Promise<DisplayRotation>;\n    /**\n     * Get the rotation of the specified device display.\n     *\n     * @param { number } displayId - the Id of the specified display.\n     * @returns { Promise<DisplayRotation> } the current display rotation.\n     * @throws { BusinessError } 17000002 - The async function is not called with await.\n     * @throws { BusinessError } 17000007 - Parameter verification failed.\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 20\n     * @test\n     */\n    getDisplayRotation(displayId: number): Promise<DisplayRotation>;\n    /**\n     * Enable/disable the rotation of device display.\n     *\n     * @param { boolean } enabled Enable the rotation or not.\n     * @returns { Promise<void> }\n     * @throws { BusinessError } 401 - if the input parameters are invalid.\n     * @throws { BusinessError } 17000002 - if the async function was not called with await.\n     * @syscap SystemCapability.Test.UiTest\n     * @since 9\n     * @test\n     */\n    /**\n     * Enable/disable the rotation of device display.\n     *\n     * @param { boolean } enabled - enable the rotation or not.\n     * @returns { Promise<void> }\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 17000002 - The async function is not called with await.\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    setDisplayRotationEnabled(enabled: boolean): Promise<void>;\n    /**\n     * Get the size of the device display.\n     *\n     * @returns { Promise<Point> } the size of the device display.\n     * @throws { BusinessError } 17000002 - if the async function was not called with await.\n     * @syscap SystemCapability.Test.UiTest\n     * @since 9\n     * @test\n     */\n    /**\n     * Get the size of the device display.\n     *\n     * @returns { Promise<Point> } the size of the device display.\n     * @throws { BusinessError } 17000002 - The async function is not called with await.\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    getDisplaySize(): Promise<Point>;\n    /**\n     * Get the size of the specified device display.\n     *\n     * @param { number } displayId - the Id of the specified display.\n     * @returns { Promise<Point> } the size of the device display.\n     * @throws { BusinessError } 17000002 - The async function is not called with await.\n     * @throws { BusinessError } 17000007 - Parameter verification failed.\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 20\n     * @test\n     */\n    getDisplaySize(displayId: number): Promise<Point>;\n    /**\n     * Get the density of the device display.\n     *\n     * @returns { Promise<Point> } the density of the device display.\n     * @throws { BusinessError } 17000002 - if the async function was not called with await.\n     * @syscap SystemCapability.Test.UiTest\n     * @since 9\n     * @test\n     */\n    /**\n     * Get the density of the device display.\n     *\n     * @returns { Promise<Point> } the density of the device display.\n     * @throws { BusinessError } 17000002 - The async function is not called with await.\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    getDisplayDensity(): Promise<Point>;\n    /**\n     * Get the density of the specified device display.\n     *\n     * @param { number } displayId - the Id of the specified display.\n     * @returns { Promise<Point> } the density of the device display.\n     * @throws { BusinessError } 17000002 - The async function is not called with await.\n     * @throws { BusinessError } 17000007 - Parameter verification failed.\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 20\n     * @test\n     */\n    getDisplayDensity(displayId: number): Promise<Point>;\n    /**\n     * Wake up the device display.\n     *\n     * @returns { Promise<void> }\n     * @throws { BusinessError } 17000002 - if the async function was not called with await.\n     * @syscap SystemCapability.Test.UiTest\n     * @since 9\n     * @test\n     */\n    /**\n     * Wake up the device display.\n     *\n     * @returns { Promise<void> }\n     * @throws { BusinessError } 17000002 - The async function is not called with await.\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    wakeUpDisplay(): Promise<void>;\n    /**\n     * Press the home key.\n     *\n     * @returns { Promise<void> }\n     * @throws { BusinessError } 17000002 - if the async function was not called with await.\n     * @syscap SystemCapability.Test.UiTest\n     * @since 9\n     * @test\n     */\n    /**\n     * Press the home key.\n     *\n     * @returns { Promise<void> }\n     * @throws { BusinessError } 17000002 - The async function is not called with await.\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    pressHome(): Promise<void>;\n    /**\n     * Press the home key to the specified display.\n     *\n     * @param { number } displayId - the Id of the specified display.\n     * @returns { Promise<void> }\n     * @throws { BusinessError } 17000002 - The async function is not called with await.\n     * @throws { BusinessError } 17000007 - Parameter verification failed.\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 20\n     * @test\n     */\n    pressHome(displayId: number): Promise<void>;\n    /**\n     * Wait for the UI become idle.\n     *\n     * @param { number } idleTime the threshold of UI idle time, in millisecond.\n     * @param { number } timeout The maximum time to wait for idle, in millisecond.\n     * @returns { Promise<boolean> } true if wait for idle succeed in the timeout, false otherwise.\n     * @throws { BusinessError } 401 - if the input parameters are invalid.\n     * @throws { BusinessError } 17000002 - if the async function was not called with await.\n     * @syscap SystemCapability.Test.UiTest\n     * @since 9\n     * @test\n     */\n    /**\n     * Wait for the UI become idle.\n     *\n     * @param { number } idleTime - the threshold of UI idle time, in millisecond, not less than 0.\n     * @param { number } timeout - the maximum time to wait for idle, in millisecond, not less than 0.\n     * @returns { Promise<boolean> } true if wait for idle succeed in the timeout, false otherwise.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 17000002 - The async function is not called with await.\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    waitForIdle(idleTime: number, timeout: number): Promise<boolean>;\n    /**\n     * Inject fling on the device display.\n     *\n     * @param { Point } from The coordinate point where the finger touches the screen.\n     * @param { Point } to The coordinate point where the finger leaves the screen.\n     * @param { number } stepLen the length of each step, in pixels.\n     * @param { number } speed The speed of fling (pixels per second),default is 600,the value ranges from 200 to 40000,set it 600 if out of range.\n     * @returns { Promise<void> }\n     * @throws { BusinessError } 401 - if the input parameters are invalid.\n     * @throws { BusinessError } 17000002 - if the async function was not called with await.\n     * @syscap SystemCapability.Test.UiTest\n     * @since 9\n     * @test\n     */\n    /**\n     * Inject fling on the device display.\n     *\n     * @param { Point } from The coordinate point where the finger touches the screen.\n     * @param { Point } to The coordinate point where the finger leaves the screen.\n     * @param { number } stepLen the length of each step, in pixels.\n     * @param { number } speed The speed of fling (pixels per second),default is 600,the value ranges from 200 to 40000,set it 600 if out of range.\n     * @returns { Promise<void> }\n     * @throws { BusinessError } 401 - if the input parameters are invalid.\n     * @throws { BusinessError } 17000002 - if the async function was not called with await.\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @since 10\n     * @test\n     */\n    /**\n     * Inject fling on the device display.\n     *\n     * @param { Point } from - the coordinate point where the finger touches the screen.\n     * @param { Point } to - the coordinate point where the finger leaves the screen.\n     * @param { number } stepLen - the length of each step, in pixels.\n     * @param { number } [speed] - the speed of fling(pixels per second),ranges from 200 to 40000. Set it default 600 if out of range or null or undefined.\n     * @returns { Promise<void> }\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 17000002 - The async function is not called with await.\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    fling(from: Point, to: Point, stepLen: number, speed: number): Promise<void>;\n    /**\n     * Inject multi-pointer action on the device display.\n     *\n     * @param { PointerMatrix } pointers The two-dimensional array of pointers to inject.\n     * @param { number } speed The speed of swipe (pixels per second),default is 600,the value ranges from 200 to 40000,set it 600 if out of range.\n     * @returns { Promise<boolean> } true if the operation finished, false\n     * @throws { BusinessError } 401 - if the input parameters are invalid.\n     * @throws { BusinessError } 17000002 - if the async function was not called with await.\n     * @syscap SystemCapability.Test.UiTest\n     * @since 9\n     * @test\n     */\n    /**\n     * Inject multi-pointer action on the device display.\n     *\n     * @param { PointerMatrix } pointers - the two-dimensional array of pointers to inject.\n     * @param { number } [speed] - the speed of swipe(pixels per second),ranges from 200 to 40000. Set it default 600 if out of range or null or undefined.\n     * @returns { Promise<boolean> } true if the operation finished, false\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 17000002 - The async function is not called with await.\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    injectMultiPointerAction(pointers: PointerMatrix, speed?: number): Promise<boolean>;\n    /**\n     * Inject fling on the device display.\n     *\n     * @param { UiDirection } direction The direction of this action.\n     * @param { number } speed The speed of fling (pixels per second),default is 600,the value ranges from 200 to 40000,set it 600 if out of range.\n     * @returns { Promise<void> }\n     * @throws { BusinessError } 401 - if the input parameters are invalid.\n     * @throws { BusinessError } 17000002 - if the async function was not called with await.\n     * @syscap SystemCapability.Test.UiTest\n     * @since 10\n     * @test\n     */\n    /**\n     * Inject fling on the device display.\n     *\n     * @param { UiDirection } direction - the direction of this action.\n     * @param { number } speed - the speed of fling (pixels per second),default is 600,the value ranges from 200 to 40000,set it 600 if out of range.\n     * @returns { Promise<void> }\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 17000002 - if the async function was not called with await.\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    /**\n     * Inject fling on the device display.\n     *\n     * @param { UiDirection } direction - the direction of this action.\n     * @param { number } speed - the speed of fling (pixels per second),default is 600,the value ranges from 200 to 40000,set it 600 if out of range.\n     * @returns { Promise<void> }\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 17000002 - The async function is not called with await.\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     * @test\n     */\n    fling(direction: UiDirection, speed: number): Promise<void>;\n    /**\n     * Inject fling on the specified device display.\n     *\n     * @param { UiDirection } direction - the direction of this action.\n     * @param { number } speed - the speed of fling (pixels per second),default is 600,the value ranges from 200 to 40000,set it 600 if out of range.\n     * @param { number } displayId - the Id of the specified display.\n    * @returns { Promise<void> }\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 17000002 - The async function is not called with await.\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 20\n     * @test\n     */\n    fling(direction: UiDirection, speed: number, displayId: number): Promise<void>;\n    /**\n     * Click on the specified location on the screen with the specified mouse button, and press the specified key simultaneously if necessary.\n     *\n     * @param { Point } p The coordinate of the specified location.\n     * @param { MouseButton } btnId The button of Mouse.\n     * @param { number } key1 the first keyCode.\n     * @param { number } key2 the second keyCode.\n     * @returns { Promise<void> }\n     * @throws { BusinessError } 401 - if the input parameters are invalid.\n     * @throws { BusinessError } 17000002 - if the async function was not called with await.\n     * @syscap SystemCapability.Test.UiTest\n     * @since 10\n     * @test\n     */\n    /**\n     * Click on the specified location on the screen with the specified mouse button, and press the specified key simultaneously if necessary.\n     *\n     * @param { Point } p - the coordinate of the specified location.\n     * @param { MouseButton } btnId - the button of Mouse.\n     * @param { number } [key1] - the first keyCode,set it default 0 if null or undefined.\n     * @param { number } [key2] - the second keyCode,set it default 0 if null or undefined.\n     * @returns { Promise<void> }\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 17000002 - The async function is not called with await.\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    mouseClick(p: Point, btnId: MouseButton, key1?: number, key2?: number): Promise<void>;\n    /**\n     * Move the mouse cursor to the specified location.\n     *\n     * @param { Point } p The coordinate of the specified location.\n     * @returns { Promise<void> }\n     * @throws { BusinessError } 401 - if the input parameters are invalid.\n     * @throws { BusinessError } 17000002 - if the async function was not called with await.\n     * @syscap SystemCapability.Test.UiTest\n     * @since 10\n     * @test\n     */\n    /**\n     * Move the mouse cursor to the specified location.\n     *\n     * @param { Point } p - the coordinate of the specified location.\n     * @returns { Promise<void> }\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 17000002 - The async function is not called with await.\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    mouseMoveTo(p: Point): Promise<void>;\n    /**\n     * The mouse wheel scrolls the specified cell at the specified position, and press the specified key simultaneously if necessary.\n     *\n     * @param { Point } p The coordinate of the specified location.\n     * @param { boolean } down Whether the mouse wheel rolls down.\n     * @param { number } d The number of cells that the mouse wheel scrolls, each cell will make the target point shift 120 pixels.\n     * @param { number } key1 the first keyCode.\n     * @param { number } key2 the second keyCode.\n     * @returns { Promise<void> }\n     * @throws { BusinessError } 401 - if the input parameters are invalid.\n     * @throws { BusinessError } 17000002 - if the async function was not called with await.\n     * @syscap SystemCapability.Test.UiTest\n     * @since 10\n     * @test\n     */\n    /**\n     * The mouse wheel scrolls the specified cell at the specified position, and press the specified key simultaneously if necessary.\n     *\n     * @param { Point } p - the coordinate of the specified location.\n     * @param { boolean } down - whether the mouse wheel rolls down.\n     * @param { number } d - the number of cells that the mouse wheel scrolls, each cell will make the target point shift 120 pixels.\n     * @param { number } [key1] - the first keyCode,set it default 0 if null or undefined.\n     * @param { number } [key2] - the second keyCode,set it default 0 if null or undefined.\n     * @returns { Promise<void> }\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 17000002 - The async function is not called with await.\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    mouseScroll(p: Point, down: boolean, d: number, key1?: number, key2?: number): Promise<void>;\n    /**\n     * The mouse wheel scrolls the specified cell at the specified position, and press the specified key simultaneously if necessary.\n     *\n     * @param { Point } p - the coordinate of the specified location.\n     * @param { boolean } down - whether the mouse wheel rolls down.\n     * @param { number } d - the number of cells that the mouse wheel scrolls, each cell will make the target point shift 120 pixels.\n     * @param { number } [key1] - the first keyCode,set it default 0 if null or undefined.\n     * @param { number } [key2] - the second keyCode,set it default 0 if null or undefined.\n     * @param { number } [speed] - The Speed of mouse wheel rolls(cells per second),ranges from 1 to 500.Set it default 20 if out of range or null or undefined.\n     * @returns { Promise<void> }\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 17000002 - The async function is not called with await.\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    mouseScroll(p: Point, down: boolean, d: number, key1?: number, key2?: number, speed?: number): Promise<void>;\n    /**\n     * Capture the specified area of current screen and save as picture which PNG format.\n     *\n     * @param { string } savePath the path where to store the picture.\n     * @param { Rect } rect The specified area of current screen, default to full screen.\n     * @returns { Promise<boolean> } true if screen-capturing and file-storing are completed successfully,false otherwise.\n     * @throws { BusinessError } 401 - if the input parameters are invalid.\n     * @throws { BusinessError } 17000002 - if the async function was not called with await.\n     * @syscap SystemCapability.Test.UiTest\n     * @since 10\n     * @test\n     */\n    /**\n     * Capture the specified area of current screen and save as picture which PNG format.\n     *\n     * @param { string } savePath - the path where to store the picture, must be in the application sandbox directory.\n     * @param { Rect } [rect] - the specified area of current screen, default to full screen.Set it default if null or undefined.\n     * @returns { Promise<boolean> } true if screen-capturing and file-storing are completed successfully,false otherwise.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 17000002 - The async function is not called with await.\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    screenCapture(savePath: string, rect?: Rect): Promise<boolean>;\n    /**\n     * Create an {@link UIEventObserver} object.\n     *\n     * @returns { UIEventObserver } the {@link UIEventObserver} object.\n     * @throws { BusinessError } 17000002 - if the async function was not called with await.\n     * @syscap SystemCapability.Test.UiTest\n     * @since 10\n     * @test\n     */\n    /**\n     * Create an {@link UIEventObserver} object.\n     *\n     * @returns { UIEventObserver } the {@link UIEventObserver} object.\n     * @throws { BusinessError } 17000002 - The async function is not called with await.\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    createUIEventObserver(): UIEventObserver;\n    /**\n     * Double click on the specified location on the screen with the specified mouse button, and press the specified key simultaneously if necessary.\n     *\n     * @param { Point } p - the coordinate of the specified location.\n     * @param { MouseButton } btnId - the button of Mouse.\n     * @param { number } [key1] - the first keyCode,set it default 0 if null or undefined.\n     * @param { number } [key2] - the second keyCode,set it default 0 if null or undefined.\n     * @returns { Promise<void> }\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 17000002 - The async function is not called with await.\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    mouseDoubleClick(p: Point, btnId: MouseButton, key1?: number, key2?: number): Promise<void>;\n    /**\n     * Long click on the specified location on the screen with the specified mouse button, and press the specified key simultaneously if necessary.\n     *\n     * @param { Point } p - the coordinate of the specified location.\n     * @param { MouseButton } btnId - the button of Mouse.\n     * @param { number } [key1] - the first keyCode,set it default 0 if null or undefined.\n     * @param { number } [key2] - the second keyCode,set it default 0 if null or undefined.\n     * @returns { Promise<void> }\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 17000002 - The async function is not called with await.\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    mouseLongClick(p: Point, btnId: MouseButton, key1?: number, key2?: number): Promise<void>;\n    /**\n     * Long click on the specified location on the screen with the specified mouse button, and press the specified key simultaneously if necessary.\n     *\n     * @param { Point } p - the coordinate of the specified location.\n     * @param { MouseButton } btnId - the button of Mouse.\n     * @param { number } [key1] - the first keyCode,set it default 0 if null or undefined.\n     * @param { number } [key2] - the second keyCode,set it default 0 if null or undefined.\n     * @param { number } [duration] - duration of mouse longClick in millisecond, the minimum and default are 1500.\n     * @returns { Promise<void> }\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 17000002 - The async function is not called with await.\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 20\n     * @test\n     */\n    mouseLongClick(p: Point, btnId: MouseButton, key1?: number, key2?: number, duration?: number): Promise<void>;\n    /**\n     * Swipe on the screen between the specified points with mouse.\n     *\n     * @param { Point } from - the starting point.\n     * @param { Point } to - the ending point.\n     * @param { number } [speed] - speed of swipe (pixels per second),the value ranges from 200 to 40000.Set it default 600 if out of range or null or undefined.\n     * @returns { Promise<void> }\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 17000002 - The async function is not called with await.\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    mouseMoveWithTrack(from: Point, to: Point, speed?: number): Promise<void>;\n    /**\n     * Hold down the left mouse button and drag on the screen between the specified points.\n     *\n     * @param { Point } from - the starting point.\n     * @param { Point } to - the ending point.\n     * @param { number } [speed] - speed of drag (pixels per second),the value ranges from 200 to 40000,Set it default 600 if out of range or null or undefined.\n     * @returns { Promise<void> }\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 17000002 - The async function is not called with await.\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    mouseDrag(from: Point, to: Point, speed?: number): Promise<void>;\n    /**\n     * Hold down the left mouse button and drag on the screen between the specified points.\n     *\n     * @param { Point } from - the starting point.\n     * @param { Point } to - the ending point.\n     * @param { number } [speed] - speed of drag (pixels per second),the value ranges from 200 to 40000,Set it default 600 if out of range or null or undefined.\n     * @param { number } [duration] - duration of longClick before drag in millisecond, the minimum and default are 1500.\n     * @returns { Promise<void> }\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 17000002 - The async function is not called with await.\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 20\n     * @test\n     */\n    mouseDrag(from: Point, to: Point, speed?: number, duration?: number): Promise<void>;\n    /**\n     * Inject text on the specified location.\n     *\n     * @param { Point } p - the coordinate of the specified location.\n     * @param { string } text - the text to inject.\n     * @returns { Promise<void> }\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 17000002 - The async function is not called with await.\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    inputText(p: Point, text: string): Promise<void>;\n    /**\n     * Inject text on the specified location, default to input at the coordinate of the specified location.\n     *\n     * @param { Point } p - the coordinate of the specified location.\n     * @param { string } text - the text to inject.\n     * @param { InputTextMode } mode - specific the mode to input text.\n     * @returns { Promise<void> }\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 801 - Capability not support, function can not work correctly due to limited device capabilities.\n     * @throws { BusinessError } 17000002 - The async function is not called with await.\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 20\n     * @test\n     */\n    inputText(p: Point, text: string, mode: InputTextMode): Promise<void>;\n    /**\n     * Simulate touchpad multi-finger swipe gestures.\n     * @param { number } fingers Finger count of touchpad multi-finger swipe, ranges from 3 to 4.\n     * @param { UiDirection } direction Direction of touchpad multi-finger swipe.\n     * @param { TouchPadSwipeOptions } [options] Additional options touchpad multi-finger swipe gestures, set its parameters to default values if null or undefined.\n     * @returns { Promise<void> }\n     * @throws { BusinessError } 401 Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 17000002 The async function is not called with await.\n     * @throws { BusinessError } 17000005 This operation is not supported.\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 18\n     * @test\n     */\n    touchPadMultiFingerSwipe(fingers: number, direction: UiDirection, options?: TouchPadSwipeOptions): Promise<void>;\n    /**\n     * Simulate pen click operation.\n     * @param { Point } point Coordinate of the specified location.\n     * @returns { Promise<void> }\n     * @throws { BusinessError } 401 Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 17000002 The async function is not called with await.\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 18\n     * @test\n     */\n    penClick(point: Point): Promise<void>;\n    /**\n     * Simulate pen long click operation.\n     * @param { Point } point Coordinate of the specified location.\n     * @param { number } [pressure] Pressure of pen long click operation, default is 1.0, the value ranges from 0.0 to 1.0.\n     * @returns { Promise<void> }\n     * @throws { BusinessError } 401 Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 17000002 The async function is not called with await.\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 18\n     * @test\n     */\n    penLongClick(point: Point, pressure?: number): Promise<void>;\n    /**\n     * Simulate pen double click operation.\n     * @param { Point } point Coordinate of the specified location.\n     * @returns { Promise<void> }\n     * @throws { BusinessError } 401 Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 17000002 The async function is not called with await.\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 18\n     * @test\n     */\n    penDoubleClick(point: Point): Promise<void>;\n    /**\n     * Simulate pen swipe operation.\n     * @param { Point } startPoint Coordinate of the specified location.\n     * @param { Point } endPoint Coordinate of the specified location.\n     * @param { number } [speed] Speed(pixels per second) of pen swipe, default is 600,the value ranges from 200 to 40000,set it 600 if out of range.\n     * @param { number } [pressure] Pressure of pen swipe operation, default is 1.0, the value ranges from 0.0 to 1.0.\n     * @returns { Promise<void> }\n     * @throws { BusinessError } 401 Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 17000002 The async function is not called with await.\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 18\n     * @test\n     */\n    penSwipe(startPoint: Point, endPoint: Point, speed?: number, pressure?: number): Promise<void>;\n    /**\n     * Inject pen multi-pointer action on the device display.\n     * @param { PointerMatrix } pointers The two-dimensional array of pointers to inject.\n     * @param { number } [speed] Speed(pixels per second) of inject pen pointer action, default is 600,the value ranges from 200 to 40000,set it 600 if out of range.\n     * @param { number } [pressure] Pressure of inject pen pointer action operation, default is 1.0, the value ranges from 0.0 to 1.0.\n     * @returns { Promise<void> }\n     * @throws { BusinessError } 401 Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 17000002 The async function is not called with await.\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 18\n     * @test\n     */\n    injectPenPointerAction(pointers: PointerMatrix, speed?: number, pressure?: number): Promise<void>;\n    /**\n     * Inject a watch crown rotation event, specifies the rotation speed if necessary.\n     *\n     * @param { number } d The number of cells that watch rotates.Positive value indicate clockwise rotation,negative value indicate counterclockwise rotation.\n     * @param { number } [speed] The speed of watch crown rotates(cells per second),ranges from 1 to 500.Set it default 20 if out of range or undefined or null.\n     * @returns { Promise<void> }\n     * @throws { BusinessError } 801 - Capability not support, function can not work correctly due to limited device capabilities.\n     * @throws { BusinessError } 17000002 - The async function is not called with await.\n     * @throws { BusinessError } 17000007 - Parameter verification failed.\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 20\n     * @test\n     */\n    crownRotate(d: number, speed?: number): Promise<void>;\n}\n/**\n * @syscap SystemCapability.Test.UiTest\n * @since 9\n * @test\n */\n/**\n * Represents a window of the ohos application,user can perform operations or query attributes on it.\n *\n * @syscap SystemCapability.Test.UiTest\n * @atomicservice\n * @since 11\n * @test\n */\ndeclare class UiWindow {\n    /**\n     * Get the bundle name of this {@link UiWindow}.\n     *\n     * @returns { Promise<string> } the bundle name.\n     * @throws { BusinessError } 17000002 - if the async function was not called with await.\n     * @throws { BusinessError } 17000004 - if the window is invisible or destroyed.\n     * @syscap SystemCapability.Test.UiTest\n     * @since 9\n     * @test\n     */\n    /**\n     * Get the bundle name of this {@link UiWindow}.\n     *\n     * @returns { Promise<string> } the bundle name.\n     * @throws { BusinessError } 17000002 - The async function is not called with await.\n     * @throws { BusinessError } 17000004 - The window or component is invisible or destroyed.\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    getBundleName(): Promise<string>;\n    /**\n     * Get the bounds rect of this {@link UiWindow}.\n     *\n     * @returns { Promise<Rect> } the bounds rect object.\n     * @throws { BusinessError } 17000002 - if the async function was not called with await.\n     * @throws { BusinessError } 17000004 - if the window is invisible or destroyed.\n     * @syscap SystemCapability.Test.UiTest\n     * @since 9\n     * @test\n     */\n    /**\n     * Get the bounds rect of this {@link UiWindow}.\n     *\n     * @returns { Promise<Rect> } the bounds rect object.\n     * @throws { BusinessError } 17000002 - The async function is not called with await.\n     * @throws { BusinessError } 17000004 - The window or component is invisible or destroyed.\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    getBounds(): Promise<Rect>;\n    /**\n     * Get the title of this {@link UiWindow}.\n     *\n     * @returns { Promise<string> } the title value.\n     * @throws { BusinessError } 17000002 - if the async function was not called with await.\n     * @throws { BusinessError } 17000004 - if the window is invisible or destroyed.\n     * @syscap SystemCapability.Test.UiTest\n     * @since 9\n     * @test\n     */\n    /**\n     * Get the title of this {@link UiWindow}.\n     *\n     * @returns { Promise<string> } the title value.\n     * @throws { BusinessError } 17000002 - The async function is not called with await.\n     * @throws { BusinessError } 17000004 - The window or component is invisible or destroyed.\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    getTitle(): Promise<string>;\n    /**\n     * Get the window mode of this {@link UiWindow}.\n     *\n     * @returns { Promise<WindowMode> } the {@link WindowMode} object\n     * @throws { BusinessError } 17000002 - if the async function was not called with await.\n     * @throws { BusinessError } 17000004 - if the window is invisible or destroyed.\n     * @syscap SystemCapability.Test.UiTest\n     * @since 9\n     * @test\n     */\n    /**\n     * Get the window mode of this {@link UiWindow}.\n     *\n     * @returns { Promise<WindowMode> } the {@link WindowMode} object\n     * @throws { BusinessError } 17000002 - The async function is not called with await.\n     * @throws { BusinessError } 17000004 - The window or component is invisible or destroyed.\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    getWindowMode(): Promise<WindowMode>;\n    /**\n     * Get the focused status of this {@link UiWindow}.\n     *\n     * @returns { Promise<boolean> } the focused status\n     * @throws { BusinessError } 17000002 - if the async function was not called with await.\n     * @throws { BusinessError } 17000004 - if the window is invisible or destroyed.\n     * @syscap SystemCapability.Test.UiTest\n     * @since 9\n     * @test\n     */\n    /**\n     * Get the focused status of this {@link UiWindow}.\n     *\n     * @returns { Promise<boolean> } the focused status\n     * @throws { BusinessError } 17000002 - The async function is not called with await.\n     * @throws { BusinessError } 17000004 - The window or component is invisible or destroyed.\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    isFocused(): Promise<boolean>;\n    /**\n     * Get the active status of this {@link UiWindow}.\n     *\n     * @returns { Promise<boolean> } the actived status\n     * @throws { BusinessError } 17000002 - if the async function was not called with await.\n     * @throws { BusinessError } 17000004 - if the window is invisible or destroyed.\n     * @syscap SystemCapability.Test.UiTest\n     * @since 9\n     * @test\n     */\n    /**\n     * Get the active status of this {@link UiWindow}.\n     *\n     * @returns { Promise<boolean> } the actived status\n     * @throws { BusinessError } 17000002 - The async function is not called with await.\n     * @throws { BusinessError } 17000004 - The window or component is invisible or destroyed.\n     * @syscap SystemCapability.Test.UiTest\n     * @since 11\n     * @deprecated since 11\n     * @useinstead ohos.UiTest.UiWindow#isActive\n     * @test\n     */\n    isActived(): Promise<boolean>;\n    /**\n     * Set the focused status of this {@link UiWindow}.\n     *\n     * @returns { Promise<void> }\n     * @throws { BusinessError } 17000002 - if the async function was not called with await.\n     * @throws { BusinessError } 17000004 - if the window is invisible or destroyed.\n     * @syscap SystemCapability.Test.UiTest\n     * @since 9\n     * @test\n     */\n    /**\n     * Set the focused status of this {@link UiWindow}.\n     *\n     * @returns { Promise<void> }\n     * @throws { BusinessError } 17000002 - The async function is not called with await.\n     * @throws { BusinessError } 17000004 - The window or component is invisible or destroyed.\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    focus(): Promise<void>;\n    /**\n     * Move this {@link UiWindow} to the specified points.\n     *\n     * @param { number } x The x coordinate of destination.\n     * @param { number } y The y coordinate of destination.\n     * @returns { Promise<void> }\n     * @throws { BusinessError } 401 - if the input parameters are invalid.\n     * @throws { BusinessError } 17000002 - if the async function was not called with await.\n     * @throws { BusinessError } 17000004 - if the window is invisible or destroyed.\n     * @throws { BusinessError } 17000005 - if the action is not supported on this window.\n     * @syscap SystemCapability.Test.UiTest\n     * @since 9\n     * @test\n     */\n    /**\n     * Move this {@link UiWindow} to the specified points.\n     *\n     * @param { number } x - the x coordinate of destination, not less than 0.\n     * @param { number } y - the y coordinate of destination, not less than 0.\n     * @returns { Promise<void> }\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 17000002 - The async function is not called with await.\n     * @throws { BusinessError } 17000004 - The window or component is invisible or destroyed.\n     * @throws { BusinessError } 17000005 - This operation is not supported.\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    moveTo(x: number, y: number): Promise<void>;\n    /**\n     * Resize this {@link UiWindow} to the specified size for the specified direction.\n     *\n     * @param { number } wide The expected wide of the window after resizing.\n     * @param { number } height The expected height of the window after resizing.\n     * @param { ResizeDirection } direction The expected direction of the window after resizing.\n     * @returns { Promise<void> }\n     * @throws { BusinessError } 401 - if the input parameters are invalid.\n     * @throws { BusinessError } 17000002 - if the async function was not called with await.\n     * @throws { BusinessError } 17000004 - if the window is invisible or destroyed.\n     * @throws { BusinessError } 17000005 - if the action is not supported on this window.\n     * @syscap SystemCapability.Test.UiTest\n     * @since 9\n     * @test\n     */\n    /**\n     * Resize this {@link UiWindow} to the specified size for the specified direction.\n     *\n     * @param { number } wide - the expected wide of the window after resizing.\n     * @param { number } height - the expected height of the window after resizing.\n     * @param { ResizeDirection } direction - the expected direction of the window after resizing.\n     * @returns { Promise<void> }\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 17000002 - The async function is not called with await.\n     * @throws { BusinessError } 17000004 - The window or component is invisible or destroyed.\n     * @throws { BusinessError } 17000005 - This operation is not supported.\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    resize(wide: number, height: number, direction: ResizeDirection): Promise<void>;\n    /**\n     * Change this {@link UiWindow} into split screen mode.\n     *\n     * @returns { Promise<void> }\n     * @throws { BusinessError } 17000002 - if the async function was not called with await.\n     * @throws { BusinessError } 17000004 - if the window is invisible or destroyed.\n     * @throws { BusinessError } 17000005 - if the action is not supported on this window.\n     * @syscap SystemCapability.Test.UiTest\n     * @since 9\n     * @test\n     */\n    /**\n     * Change this {@link UiWindow} into split screen mode.\n     *\n     * @returns { Promise<void> }\n     * @throws { BusinessError } 17000002 - The async function is not called with await.\n     * @throws { BusinessError } 17000004 - The window or component is invisible or destroyed.\n     * @throws { BusinessError } 17000005 - This operation is not supported.\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    split(): Promise<void>;\n    /**\n     * Maximize this {@link UiWindow}.\n     *\n     * @returns { Promise<void> }\n     * @throws { BusinessError } 17000002 - if the async function was not called with await.\n     * @throws { BusinessError } 17000004 - if the window is invisible or destroyed.\n     * @throws { BusinessError } 17000005 - if the action is not supported on this window.\n     * @syscap SystemCapability.Test.UiTest\n     * @since 9\n     * @test\n     */\n    /**\n     * Maximize this {@link UiWindow}.\n     *\n     * @returns { Promise<void> }\n     * @throws { BusinessError } 17000002 - The async function is not called with await.\n     * @throws { BusinessError } 17000004 - The window or component is invisible or destroyed.\n     * @throws { BusinessError } 17000005 - This operation is not supported.\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    maximize(): Promise<void>;\n    /**\n     * Minimize this {@link UiWindow}.\n     *\n     * @returns { Promise<void> }\n     * @throws { BusinessError } 17000002 - if the async function was not called with await.\n     * @throws { BusinessError } 17000004 - if the window is invisible or destroyed.\n     * @throws { BusinessError } 17000005 - if the action is not supported on this window.\n     * @syscap SystemCapability.Test.UiTest\n     * @since 9\n     * @test\n     */\n    /**\n     * Minimize this {@link UiWindow}.\n     *\n     * @returns { Promise<void> }\n     * @throws { BusinessError } 17000002 - The async function is not called with await.\n     * @throws { BusinessError } 17000004 - The window or component is invisible or destroyed.\n     * @throws { BusinessError } 17000005 - This operation is not supported.\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    minimize(): Promise<void>;\n    /**\n     * Resume this {@link UiWindow}.\n     *\n     * @returns { Promise<void> }\n     * @throws { BusinessError } 17000002 - if the async function was not called with await.\n     * @throws { BusinessError } 17000004 - if the window is invisible or destroyed.\n     * @throws { BusinessError } 17000005 - if the action is not supported on this window.\n     * @syscap SystemCapability.Test.UiTest\n     * @since 9\n     * @test\n     */\n    /**\n     * Resume this {@link UiWindow}.\n     *\n     * @returns { Promise<void> }\n     * @throws { BusinessError } 17000002 - The async function is not called with await.\n     * @throws { BusinessError } 17000004 - The window or component is invisible or destroyed.\n     * @throws { BusinessError } 17000005 - This operation is not supported.\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    resume(): Promise<void>;\n    /**\n     * Close this {@link UiWindow}.\n     *\n     * @returns { Promise<void> }\n     * @throws { BusinessError } 17000002 - if the async function was not called with await.\n     * @throws { BusinessError } 17000004 - if the window is invisible or destroyed.\n     * @throws { BusinessError } 17000005 - if the action is not supported on this window.\n     * @syscap SystemCapability.Test.UiTest\n     * @since 9\n     * @test\n     */\n    /**\n     * Close this {@link UiWindow}.\n     *\n     * @returns { Promise<void> }\n     * @throws { BusinessError } 17000002 - The async function is not called with await.\n     * @throws { BusinessError } 17000004 - The window or component is invisible or destroyed.\n     * @throws { BusinessError } 17000005 - This operation is not supported.\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    close(): Promise<void>;\n    /**\n     * Get the active status of this {@link UiWindow}.\n     *\n     * @returns { Promise<boolean> } the active status.\n     * @throws { BusinessError } 17000002 - The async function is not called with await.\n     * @throws { BusinessError } 17000004 - The window or component is invisible or destroyed.\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    isActive(): Promise<boolean>;\n    /**\n     * Get the displayId to which the window belongs.\n     *\n     * @returns { Promise<number> } the displayId value.\n     * @throws { BusinessError } 17000002 - The async function is not called with await.\n     * @throws { BusinessError } 17000004 - The window or component is invisible or destroyed.\n     * @syscap SystemCapability.Test.UiTest\n     * @atomicservice\n     * @since 20\n     * @test\n     */\n    getDisplayId(): Promise<number>;\n}\n/**\n * Represents a two-dimensional array of pointers on the device display, it's used to build a\n * multi-finger trace which can be injected with UiDriver.\n *\n * @syscap SystemCapability.Test.UiTest\n * @since 9\n * @test\n */\n/**\n * Represents a two-dimensional array of pointers on the device display, it's used to build a\n * multi-finger trace which can be injected with UiDriver.\n *\n * @syscap SystemCapability.Test.UiTest\n * @crossplatform\n * @atomicservice\n * @since 11\n * @test\n */\ndeclare class PointerMatrix {\n    /**\n     * Create an {@link PointerMatrix} object.\n     *\n     * @param { number } fingers The number of fingers.\n     * @param { number } steps The number of steps of each finger trace.\n     * @returns { PointerMatrix } the {@link PointerMatrix} object.\n     * @throws { BusinessError } 401 - if the input parameters are invalid.\n     * @syscap SystemCapability.Test.UiTest\n     * @since 9\n     * @test\n     */\n    /**\n     * Create an {@link PointerMatrix} object.\n     *\n     * @param { number } fingers - The number of fingers, ranges from 1 to 10.\n     * @param { number } steps - The number of steps of each finger trace, ranges from 1 to 1000.\n     * @returns { PointerMatrix } the {@link PointerMatrix} object.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    static create(fingers: number, steps: number): PointerMatrix;\n    /**\n     * Set the point value of an element in the PointerMatrix.\n     *\n     * @param { number } finger The index of target finger to set.\n     * @param { number } step The index of target step to set.\n     * @param { Point } point The coordinate of target step to set.\n     * @throws { BusinessError } 401 - if the input parameters are invalid.\n     * @syscap SystemCapability.Test.UiTest\n     * @since 9\n     * @test\n     */\n    /**\n     * Set the point value of an element in the PointerMatrix.\n     *\n     * @param { number } finger - the index of target finger to set.\n     * @param { number } step - the index of target step to set.\n     * @param { Point } point - the coordinate of target step to set.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @syscap SystemCapability.Test.UiTest\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     * @test\n     */\n    setPoint(finger: number, step: number, point: Point): void;\n}\n/**\n * The static builder for building {@link By}object conveniently,usage example:BY.text('txt').enabled(true).\n *\n * @syscap SystemCapability.Test.UiTest\n * @since 8\n * @deprecated since 9\n * @useinstead ohos.uitest.ON\n * @test\n */\ndeclare const BY: By;\n/**\n * The static builder for building {@link On}object conveniently,usage example:ON.text('txt').enabled(true).\n *\n * @syscap SystemCapability.Test.UiTest\n * @since 9\n * @test\n */\n/**\n * The static builder for building {@link On}object conveniently,usage example:ON.text('txt').enabled(true).\n *\n * @syscap SystemCapability.Test.UiTest\n * @crossplatform\n * @atomicservice\n * @since 11\n * @test\n */\ndeclare const ON: On;\nexport { UiComponent, UiDriver, Component, Driver, UiWindow, ON, On, BY, By, MatchPattern, DisplayRotation, ResizeDirection, WindowMode, Point, WindowFilter, Rect, PointerMatrix, UiDirection, MouseButton, UIElementInfo, UIEventObserver, TouchPadSwipeOptions, InputTextMode };\n",
}
export default FILE;